API Endpoints
Upload a file
This endpoint uploads a single file
POST
/
upload
Body
file
file
requiredThis is the file that is going to be uploaded to your fly.
filename
string
This is the name of your file
maxFileSize
string
This is the maximum file size that can be uploaded. For example: 1MB
allowedFileTypes
string
This are the file types that can be uploaded. Multiple file types should be
separated with commas. For example: mp4, png, wav
Response
success
boolean
Indicates whether the call was successful. true if successful, false if not.
status
number
Provides additional information about the outcome of the request. The specific values and their meanings may vary.
- 200: The request was successful.
- 400: The request was invalid or malformed.
- 401: Authentication or authorization failed.
- 403: The request is not allowed.
- 404: The requested resource was not found.
- 500: An internal server error occurred.
data
object
This contains information about the uploaded file such as the url, file size, path and mime type.