curl --request POST \ --url https://local.storage.nhost.run/v1/files/ \ --header 'Authorization: <authorization>' \ --header 'Content-Type: multipart/form-data' \ --form 'file[]=@path-to-file'
{ "ProcessedFiles": [ { "id": "<string>", "name": "<string>", "size": 123, "bucketId": "<string>", "eTag": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "isUploaded": true, "mimeType": "<string>", "uploadedByUserId": "<string>", "metadata": {} } ] }
Upload one or multiple files at once
JSON Web Token to authorize requests.
Bucket to upload the files to
(Optional) Set the following metadata for the uploaded files instead of letting the server do it automatically. See "UploadFileMetadata".
Show child attributes
Array of files to upload.
File was uploaded successfully