Gestor Deportivo supports image uploads across users, teams, clubs, events, players, and notices. The API uses multer to parse incomingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/gestor-backend/llms.txt
Use this file to discover all available pages before exploring further.
multipart/form-data requests and then stores the resulting files in Google Cloud Storage, returning permanent public URLs in the response.
How uploads work
When an endpoint accepts file uploads, you must send the request asmultipart/form-data rather than JSON. Each upload endpoint defines one or more named fields that correspond to a specific image slot (e.g., a team logo vs. a banner). The server processes each field independently, so you can upload one or both files in a single request.
Upload fields by endpoint
| Endpoint | Field Name(s) | Input Type |
|---|---|---|
POST /api/user/register | avatar | array |
POST /api/user/update-user/:userId | avatar | array |
POST /api/team/register-team | teamImg, bannerImg | named fields |
POST /api/team/updating/:teamId/team | teamImg, bannerImg | named fields |
POST /api/club/register-club | clubImg, bannerImg | named fields |
POST /api/event/agregate | eventsImg | array |
POST /api/event/update/:eventId/event | eventsImg | array |
POST /api/player/register | avatar | array |
POST /api/player/update/:playerId/player | avatar | array |
POST /api/notice/register-notice/:eventId | noticeImg, videoUrl | named fields |
Uploading files with curl
The example below registers a new team and uploads both a team logo and a banner image in a singlemultipart/form-data request.
Content-Type header is not set manually — curl sets it to multipart/form-data automatically when you use -F flags.
Response format
After a successful upload, the stored images are returned inside the resource object as arrays of objects, each containing aurl property pointing to the Google Cloud Storage location:
Array of image objects. Each object contains a
url string pointing to the uploaded file in Google Cloud Storage.Array of banner image objects, each with a
url string.Uploading a user avatar
Uploading a notice with an image
Endpoints that do not accept file uploads expect
Content-Type: application/json. Sending multipart/form-data to a JSON-only endpoint may cause fields to be parsed incorrectly or ignored. Always match the content type to what the endpoint requires.