With this method you can upload files up to 100mb in size. Please note that to process these files you should use async=true mode with data extraction and tools endpoints along with Job Check to check status of background jobs you create.
PUT {presigned url}
Important The presigned URL must be retreived from the /file/upload/get-presigned-url for the PUT operation to succeed.
Content-Type header
When sending PUT request don’t forget to add Content-Type header with proper value based on input file type.
For example:
File Extension
Content-Type Value
.txt .csv .xml .json
text/plain
.pdf
application/pdf
.msg .eml
application/vnd.ms-outlook
.doc
application/msword
If you’re not sure then use application/octet-stream header. It works for most file types.
All uploaded files are treated as temporary files and are automatically permanently removed after 1 hour. If you have a file that you want to reuse over and over, please upload it to PDF.co Built-In Files Storage and get its filetoken:// link that you may reuse inside PDF.co API.