File Upload API Documentation

Welcome to the File Upload API. Below you will find information on how to use the endpoints.

Upload a File

To upload a file, use the following endpoint:

POST /upload

Send a multipart/form-data request with the file included in the file field.

Example using curl:

curl -F "file=@/path/to/your/file" https://share.andrepaiva.dev/upload

List Files

To list all uploaded files, use the following endpoint:

GET /files

File Access

Files can be accessed directly using the URL provided in the response of the upload endpoint.

Example URL:

https://share.andrepaiva.dev/files/your-file-id.ext