UploadFile
Uploads a File. Requires the files.content.read scope.
Input
Name | Type | Required | Description |
LocalFilePath | String | False | Path of the local file to be uploaded to Dropbox |
FileName | String | False | The name of the file. Required for Content. Optional if LocalFilePath is specified. |
Path | String | True | Path in the user's Dropbox to save the file. |
AutoRename | Boolean | False | If there's a conflict, as determined by mode, have the Dropbox server try to automatically rename the file to avoid conflict. |
Mode | String | False | Selects what to do if the file already exists.
The allowed values are add, overwrite, update. The default value is add. |
Mute | Boolean | False | If true, this tells the clients that this modification shouldn't result in a user notification. |
ClientModified | String | False | Timestamp (format=%Y-%m-%dT%H:%M:%SZ). The value to store as the client_modified timestamp. |
StrictConflict | Boolean | False | Be more strict about how each WriteMode detects conflict. |
ContentHash | String | False | A hash of the file content uploaded in this call. If provided and the uploaded content does not match this hash, an error will be returned. |
PropertyGroups | String | False | List of custom properties to add to file, a valid JSON array as a string. |
Result Set Columns
Name | Type | Description |
Success | String | Whether or not the file was successfully uploaded. |
Name | String | The name of the file (including extension). |
Id | String | A unique identifier for the file. |
ClientModified | String | The modification time set by the desktop client when the file was added to Dropbox. |
ServerModified | String | The last time the file was modified on Dropbox. |
Revision | String | A unique identifier for the current revision of a file. |
Size | String | The file size in bytes. |
LowerCasePath | String | The lowercased full path in the user's Dropbox. |
DisplayPath | String | The cased path to be used for display purposes only. |
PreviewURL | String | The preview URL of the file. |
IsDownloadable | String | If true, file can be downloaded directly; else the file must be exported. |
HasExplicitSharedMembers | String | If true, the results will include a flag for each file indicating whether or not that file has any explicit members. |
ContentHash | String | A hash of the file content. |