Upload a file to storage. Returns file metadata including path for use in records.
curl --request POST \
--url https://api.example.com/api/v1/files/upload \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"file": {
"filename": "<string>",
"size": 123,
"mime_type": "<string>",
"path": "<string>"
},
"success": true,
"message": "File uploaded successfully"
}File to upload
curl --request POST \
--url https://api.example.com/api/v1/files/upload \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"file": {
"filename": "<string>",
"size": 123,
"mime_type": "<string>",
"path": "<string>"
},
"success": true,
"message": "File uploaded successfully"
}