This route is called to upload a file when chunk upload is not necessary.
Thumbnail_sync: when set then backend will wait up to 10 seconds for preview to be generated before reply.
Query Parameters
Name
Type
Description
thumbnail_sync
boolean
Request Body
Name
Type
Description
File
object
The file which will be uploaded
Upload with chunk
To upload a file in multiple chunk you must first initial the file itself, and then upload into the file.
The file initialization and following upload calls takes this parameters as a query string:
filename: string, file name
type: string, mime type for the file
total_chunks: number, total number of chunk to be uploaded
total_Size: number, sum of every chunk size (total file size)
chunk_number: number, current chunk uploaded, set it to undefined during file creation process.
thumbnail_sync: when set then backend will wait up to 10 seconds for the preview to be generated before to reply.
Overwrite a file
(check user belongs to company)
User can call this if the file was not already uploaded. If file already exist only apps can do this (users cannot directly overwrite a file).