To store files permanently (pdf templates, images you want to reuse) please use PDF.co Built-In Files Storage instead.

You can also use 3rd party cloud services:

  • Dropbox: you can use public link to a file from Dropbox.
  • Google Drive: you can use link to a file that was shared as anyone with a link.
  • Google Docs/Sheets/Slides: you can use a link to a document in Google Docs that was shared as anyone with a link.
  • Any publicly accessible URL from any cloud service or web source that provides a direct link to the uploaded file.
IMPORTANT NOTE FOR GOOGLE DRIVE/DOCS users: free Google Drive/Docs limits the number of requests to their files. If you use a link to file or document from Google Drive or Google Drive then make sure you have no more than 5-10 requests per minute. Otherwise Google Drive returns no file or error page.

Temporary Files Upload

You can upload temporary files up to 2GB 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.

Steps to Upload File

  1. First, call /file/upload/get-presigned-url. It will generate link for uploading (presignedUrl) and final link (url).

  2. Now send your file to the presignedUrl link using the PUT method within the next 30 minutes.

  3. Once finished, use url to access the file you have just uploaded.

Note: all uploaded files are considered to be temporary files and are automatically permanently removed after 1 hour.