Field technicians can attach photos to work order notes to document site conditions, completed tasks, or issues encountered on-site. Images are uploaded via a multipart HTTP request, stored on the server filesystem, and immediately accessible via a static URL. This guide covers the upload endpoint, request format, response structure, and practical client examples.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CLINTONARMANDO/apiregistropendientes/llms.txt
Use this file to discover all available pages before exploring further.
Upload endpoint
| Parameter | Location | Type | Description |
|---|---|---|---|
notaId | Path | number | ID of the work order note to attach images to |
files | Form field | file (multi) | One or more image files |
The form field name must be exactly
files. Sending files under a different field name will result in a 400 error.Request format
The request must useContent-Type: multipart/form-data. You can include multiple files in a single request by repeating the imagenes field.
File size limits
| Limit | Value |
|---|---|
| Maximum size per file | 50 MB |
| Maximum total request size | 50 MB |
Examples
Response
A successful upload returns200 OK with a JSON array of saved image objects.
Response fields
| Field | Type | Description |
|---|---|---|
id | number | Unique identifier for the stored image record |
url | string | Server-relative path to the uploaded file |
Accessing uploaded images
Uploaded files are served from the/uploads/** static resource path. Construct the full URL by prepending the server base URL to the url field from the response:
Images are stored in the
uploads/notas/ directory on the server filesystem, relative to the process working directory. Ensure this path is writable and backed up as part of your deployment strategy.Updating images for a note
To replace or update the set of images associated with a note, use the PUT endpoint:Best practices
Compress images before uploading
Field photos from mobile cameras can easily exceed 8 MB each. Compress images on the client before sending to stay well within the 50 MB limit and reduce upload time on slow cellular connections.
Use JPEG for photographs
JPEG provides the best file-size-to-quality ratio for real-world photos. PNG is more appropriate for screenshots or diagrams with sharp edges and text.
Validate file types on the client
Check the MIME type and file extension before submitting to give users immediate feedback rather than waiting for a server error.
Common errors
| Status | Cause | Resolution |
|---|---|---|
400 Bad Request | Wrong form field name (not imagenes) | Ensure the multipart field is named exactly imagenes |
401 Unauthorized | Missing or expired JWT | Include a valid Authorization: Bearer <token> header |
404 Not Found | notaId does not exist | Verify the note ID before uploading |
413 Payload Too Large | File or request exceeds 50 MB | Compress images or split into multiple requests |
500 Internal Server Error | uploads/ directory not writable | Ensure the server process has write permission to the uploads/notas/ path |