This operation allows you to upload a file to the Tensorlake Cloud. The file will be associated with the project specified by the API key used in the request.
The file can be of any of the following types:
The file type is automatically detected based on Content-Type
header.
In case the Content-Type
header is not provided, the file extension will be used to infer the type.
If the file type cannot be determined, it will default to application/octet-stream
.
We only keep one copy of the file, so uploading the same file multiple times will return the same file_id
.
Labels can be added to the file to help categorize the parse jobs associated with it. Labels are key-value pairs that can be used to filter and organize files.
These should be provided in the a labels
text field in the multipart form data.
Labels are optional, but they can be very useful for organizing and managing parse jobs.
There is an upload limit of 1 GB per file. If you need to upload larger files, please reach out to us at support@tensorlake.ai.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
File uploaded successfully
The response is of type object
.