Download OpenAPI specification:
Dropzones provide a super simple and secure way to store files in the cloud from within your own app, website or service. No need to deal with complex file management systems, buckets or complicated APIs. Just create a dropzone, upload files and manage them with ease. Please note that by using this API you agree to the Terms of Service and Privacy Policy.
Creates a new dropzone with the specified parameters.
gb | number [ 0.2 .. 4 ] The storage size in GB. |
days | number [ 30 .. 365 ] The number of days the dropzone will be active. |
{- "gb": 1,
- "days": 90
}
{- "status": "success",
- "data": {
- "_id": "string",
- "tier": "string",
- "hidden": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "string",
- "maxDuration": 0,
- "maxSize": 0,
- "maxFileSize": 0,
- "usedSpace": 0,
- "deleteTime": 0,
- "uploadUrl": "string",
- "maxSizeGb": 1,
- "maxDurationDays": 90
}
}
Updates the specified dropzone with new parameters. If the new size or duration is greater than the current size or duration, the dropzone will be extended accordingly. This operation consumes exactly the new amount of GB-Months you want to extend the dropzone with.
gb | number [ 0.2 .. 4 ] The new storage size in GB. Must be greater than the current size. |
days | number [ 30 .. 365 ] The number of days the dropzone will be active. Must be greater than the current duration. |
{- "gb": 1,
- "days": 90
}
{- "status": "success",
- "data": {
- "_id": "string",
- "tier": "string",
- "hidden": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "string",
- "maxDuration": 0,
- "maxSize": 0,
- "maxFileSize": 0,
- "usedSpace": 0,
- "deleteTime": 0,
- "uploadUrl": "string",
- "maxSizeGb": 1,
- "maxDurationDays": 90
}
}
{- "status": "success",
- "data": {
- "_id": "string",
- "tier": "string",
- "hidden": true,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "string",
- "maxDuration": 0,
- "maxSize": 0,
- "maxFileSize": 0,
- "usedSpace": 0,
- "deleteTime": 0,
- "uploadUrl": "string",
- "maxSizeGb": 1,
- "maxDurationDays": 90
}
}
{- "status": "success",
- "data": [
- {
- "_id": "string",
- "size": 0,
- "type": "string",
- "name": "string",
- "meta": {
- "dropZoneCode": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "dropZoneId": "string",
- "s3Status": "string"
}
}
]
}
Returns a signed S3 URL and fileId for direct upload to S3 for the given file metadata. This will already consume the storage quota of the dropzone, so ensure that the dropzone has enough space available. The file will not be immediately available in the dropzone until the upload is confirmed.
name required | string The name of the file to be uploaded. |
type required | string The MIME type of the file. |
size required | integer The size of the file in bytes. |
{- "name": "string",
- "type": "string",
- "size": 0
}
{- "status": "success",
- "data": {
- "fileId": "string",
- "signedUrl": "string"
}
}
Confirms that a file has been uploaded to S3 and finalizes the file in the system. No request body is required.
fileId required | string The ID of the file to confirm. |
{- "_id": "string",
- "size": 0,
- "type": "string",
- "name": "string",
- "meta": {
- "dropZoneCode": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "dropZoneId": "string",
- "s3Status": "string"
}
}
Retrieves details of a specific file.
fileId required | string The ID of the file. |
{- "_id": "string",
- "size": 0,
- "type": "string",
- "name": "string",
- "meta": {
- "dropZoneCode": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "dropZoneId": "string",
- "s3Status": "string"
}
}