cURL
curl --request POST \ --url https://nulldrop.xyz/api/v2/buckets/{id}/objects \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'key=<string>'
{ "object": { "id": "<string>", "filename": "<string>", "originalName": "<string>", "size": 123, "mimeType": "<string>", "downloadUrl": "<string>", "shareUrl": "<string>", "isPublic": true, "downloadCount": 123, "uploadedAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "expiresAt": "2023-11-07T05:31:56Z" } }
Upload a file into a specific bucket.
key
@
curl
-F "file=@demo.zip"
-F "file=demo.zip"
API key authentication (format: nd_xxxxx)
Bucket ID
File to upload
Optional custom key (path)
Uploaded
Show child attributes