added curl example
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
82fcdf2910
commit
d63a51e30e
|
@ -2,4 +2,5 @@
|
|||
title = "Sandbox Documentation"
|
||||
language = "en"
|
||||
[output.html]
|
||||
default-theme = "light"
|
||||
theme = "midnight"
|
||||
default-theme = "midnight"
|
|
@ -22,10 +22,17 @@ To use the headless object storage, you can upload a file via REST-Interface or
|
|||
files = {'fileUpload': (filename, open(filename, 'rb'),'text/csv')}
|
||||
r = requests.post(url, files=files)
|
||||
```
|
||||
|
||||
or using curl as command line tool:
|
||||
|
||||
```
|
||||
curl -F fileUpload=@file.zip https://share.storage.sandbox.iuk.hdm-stuttgart.de/upload
|
||||
```
|
||||
|
||||
**Example JSON response**
|
||||
```json
|
||||
{
|
||||
"PublicUrl": "https://storage.sandbox.iuk.hdm-stuttgart.de/upload/a1236b2b-49bf-4047-a536-20dab15b7777/untitled.txt",
|
||||
"PublicUrl": "https://share.storage.sandbox.iuk.hdm-stuttgart.de/upload/f2a69e9a-f60b-418d-a678-efce181fb8a5/untitled.txt",
|
||||
"Size": 11,
|
||||
"Expiration": "2023-10-04T00:00:00Z"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue