Skip to main content
POST

Overview

Uploads a file directly to Drime Cloud using multipart form data. This is the simplest upload method but recommended only for smaller files.
For files larger than 5MB, consider using the presigned URL or multipart upload flow for better reliability.

Request Body (multipart/form-data)

file
required
The file to upload
integer
ID of the destination folder. Use null for root.
integer
Workspace ID. Use 0 for personal workspace.
string
Optional folder path. Folders will be auto-created if they don’t exist. Format: /some/folders/here/file-name.jpg
integer
Original modification time of the file as a Unix epoch in milliseconds. Stored in the entry’s client_last_modified field so the original mtime is preserved (like a sync client would). Can also be set later via Set File Metadata.
string
SHA-256 hex digest of the file content. Stored in the entry’s file_hash field and used for deduplication via Check File Hash.

Response

object
The created file entry object
string
Request status (success)