Remote Upload
Upload remotely files from URL.
Endpoint
http
POST /api/v1/shares/{token}/uploadsParameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | yes | - |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
urls | array | yes | The array of valid file urls to download remotely |
parent_id | uuid | - | The uuid of the parent folder. If it's not set, then the files will be uploaded into home location |
Request example
sh
curl --location --request POST 'https://files.ro/api/v1/shares/{token}/uploads' \
--header 'Content-Type: application/json' \
--data-raw '{
"urls": [
"https://deepsource.io/_nuxt/img/lewis.6a776c9.png"
]
}'Response
json
{
"type": "success",
"message": "Files was successfully uploaded."
}json
{
"type": "success",
"message": "Files were successfully added to the upload queue."
}json
{
"type": "error",
"message": "Access Denied"
}