Overview
The File API provides an endpoint for viewing files that have been uploaded and stored in MileApp’s storage system. Files are typically uploaded as part of task execution (photos, signatures, documents) and can be retrieved using system-generated URLs.API Endpoint
| Endpoint | Method | Description |
|---|---|---|
/file/view | GET | View/download a file by URL |
How It Works
Files in MileApp are stored on cloud storage and accessed via system-generated URLs. When tasks contain photo, signature, or document components, the uploaded files are stored and a URL is generated.File URL Format
Supported File Types
The File API returns files with appropriate content types:| Type | Content-Type | Extensions |
|---|---|---|
| Image | image/png, image/jpg, image/jpeg | .png, .jpg, .jpeg |
Usage
Retrieving a File
Common Use Cases
- Displaying Task Photos - Retrieve photos captured during task execution
- Viewing Signatures - Display customer signatures collected in the field
- Document Access - Access documents attached to tasks