curl --request POST \
--url https://apix.us.amity.co/api/v3/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form 'files=<string>' \
--form fullImage=true \
--form 'preferredFilename=<string>' \
--form accessType=public \
--form file.items='@example-file' \
--form files.items='@example-file'{
"status": "<string>",
"data": [
{
"fileId": "<string>",
"type": "image",
"accessType": "public",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "<string>",
"extension": "<string>",
"size": 123,
"mimeType": "<string>",
"metadata": {
"exif": {},
"gps": {},
"height": 123,
"width": 123,
"isFull": true
}
}
}
]
}Upload file to cloud storage
curl --request POST \
--url https://apix.us.amity.co/api/v3/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form 'files=<string>' \
--form fullImage=true \
--form 'preferredFilename=<string>' \
--form accessType=public \
--form file.items='@example-file' \
--form files.items='@example-file'{
"status": "<string>",
"data": [
{
"fileId": "<string>",
"type": "image",
"accessType": "public",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"attributes": {
"name": "<string>",
"extension": "<string>",
"size": 123,
"mimeType": "<string>",
"metadata": {
"exif": {},
"gps": {},
"height": 123,
"width": 123,
"isFull": true
}
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Information of file to be created. It will be applied to every attachment
An array containing a single file.
An array of files. Must not be provided at the same time as file.
1024File access type. network type requires authentication to download.
public, network