cURL
curl --request POST \ --url https://api.ubpass.co/v1/uploads/s3 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "file": "<string>" } '
{ "msg": "<string>" }
Upload a file to S3 by providing the file data as a form-data parameter and the bucket name
Bearer token authentication
Bucket name to upload the file to
File to upload
File uploaded successfully, path returned