While the default policy is that existing files (specified in the You can back up the existing file by adding the option
In the example below, When the option For example, if a folder had great-movie.mov and the user downloaded two more copies of it the folder would result in
transferSpec) are overwritten at download, it is possible to specify that downloads of pre-existing files should be renamed instead of overwritten.
save-before-overwrite": true to the
transferSpec in the request.
great-movie.mov is the name of the existing file.
save-before-overwrite": true is included, a file that already exists at the destination is renamed by adding a timestamp and an index (starting from 0, and incrementing if multiple downloads sessions for the same file occur in the same second) to the filename. The last downloaded version of the file retains the original filename. For the request in the example above, Connect saves the existing file
great-movie.mov with the same name (
great-movie.mov), with a timestamp to be added later. The new (overwritten) file is written as
great-movie.mov.partial, and renamed to
great-movie.mov when the transfer is completed.
great-movie.mov is the last copy of the downloaded file.
You can back up the existing file by adding the option
In the example below,
When the option
For example, if a folder had great-movie.mov and the user downloaded two more copies of it the folder would result in
File filters are used in file selection/save dialogs and allow the client to show only filtered files based on an extensions defined by the application or set by the user. These functions are:
Drag and Drop can enable your application to offer users a simplified method for uploading files. Drag and Drop allows the user to simply drag a file from their operating system to the web application and the handlers will read in the needed data provided about the file to initiate the upload.