PUT
/
upload
URL Upload
curl --request PUT \
  --url https://files.storagecdn.online/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "file_url": {}
}'
{
  "success": true,
  "file_url": "<string>"
}
Upload a file by providing a publicly accessible URL. The server will fetch and store the file.

Request

curl --location --request PUT 'https://files.storagecdn.online/upload' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "file_url": "https://example.com/path/to/file.png"
}'

Request Body

{
  "file_url": "https://example.com/path/to/file.png"
}

Parameters

file_url
String (URL)
required
Publicly accessible URL of the file to upload

Example

curl --location --request PUT 'https://files.storagecdn.online/upload' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "file_url": "https://file.com/images/sample.png"
}'

Response

Success Response

Status Code: 200 OK
{
  "success": true,
  "file_url": "https://files.storagecdn.online/image/2b847255-e028-4cf7-a2aa-c638f3e15cbc.webp"
}
success
boolean
Whether the upload was successful
file_url
string
URL to access the uploaded file

Use Cases

  • Importing files from external sources
  • Migrating files from other storage services
  • Best for: Bulk imports, file migrations, webhook integrations

Requirements

  • The URL must be publicly accessible (no authentication required)
  • The file must be directly downloadable
  • HTTPS URLs are recommended