Upload
Prod
https://api.everabyte.io/api
Prod
https://api.everabyte.io/api
PUT
https://api.everabyte.io/api
/files/upload/{bucketId}/{folderId}
PUT
bucketId
(required): The ID of the bucket to which the files will be uploaded. Example: my-bucket-123
folderId
(optional): The ID of the folder within the bucket to which the files will be uploaded. If not provided, the files are uploaded to the root of the bucket. Example: my-folder-456
multipart/form-data
. Each file to be uploaded should be sent as a separate part with the name file
.Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="document1.pdf"
Content-Type: application/pdf
[File content of document1.pdf]
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="image1.jpg"
Content-Type: image/jpeg
[File content of image1.jpg]
------WebKitFormBoundary7MA4YWxkTrZu0gW--
curl
):
curl
examples:-X PUT
: Specifies the HTTP method as PUT.-F "file=@document1.pdf"
: Specifies a form field named "file" and uploads the contents of the local file document1.pdf
. The @
symbol tells curl
to treat the following string as a filename./my-folder-456
in the URL to specify the folder.-F "file=@..."
options are used to upload multiple files.200 OK
: Files successfully uploaded.201 Created
: Files successfully created (may be used if the bucket/folder was created as a result of the upload).400 Bad Request
: Invalid request parameters (e.g., missing bucket ID, no files provided).404 Not Found
: Bucket not found.500 Internal Server Error
: Server error.Request
Body Params multipart/form-data
file
file
required
Example:
[]