The File Uploader API allows you to upload files into PDF.co. It supports a large file size that can go up to 2GB. These files are temporarily stored on our server. They are automatically removed after 1 hour by default for security reasons. You can also remove the files earlier than an hour when necessary. To find out more about PDF.co security, please check out this page https://pdf.co/security

File Uploader API Benefits

Large Files Support

The File Uploader API supports large file upload. You can upload up to 2GB file size. This will require the Asynchronous Mode enabled so the system can process the request uninterrupted.

Auto-remove Files

The File Uploader API helps you keep your uploaded files secure by only making it available in a temporary URL for a short period of time. The uploaded files are accessible for only an hour by default. Once 1 hour has elapsed, it will automatically delete your uploaded files on the server.

Base64 Support

The File Uploader API supports uploading small files as Base64. This creates a temporary file using Base64 as source data. You can use this temporary file URL with other API methods.

On-Premise API Server

Businesses and enterprises can host the PDF.co APIs in their own server using our on-premise API Server offering. This gives them more administrative control in server performance and document flow. To get a trial, please send a request to our support team.

Sign Up

File Uploader API Integrations

PDF.co has over 300+ app integration. Kindly explore our following plugins:

File Uploader API Samples

GET Pre-signed URL

curl --location --request GET 'https://api.pdf.co/v1/file/upload/get-presigned-url?name=test.pdf&encrypt=true' \
--header 'x-api-key: {{x-api-key}}'

Other GET Pre-signed URL cURL sample codes are available here.

The GET Pre-signed URL JavaScript sample codes are available here.

The GET Pre-signed URL PHP sample codes are available here.

The GET Pre-signed URL Java sample codes are available here.

The GET Pre-signed URL C# sample codes are available here.

PUT File Upload

curl --location --request PUT '' \
--header 'x-api-key: {{x-api-key}}' \
--form 'file=@"/Users/em/Downloads/logo.png"'

The PUT File Upload JavaScript sample codes are available here.

The PUT File Upload PHP sample codes are available here.

The PUT File Upload Python sample codes are available here.

The PUT File Upload Java sample codes are available here.

The PUT File Upload C# sample codes are available here.

PDF.co built-in File Storage

PDF.co built-in File Storage is a file storage option for those who are looking to store their files in the cloud permanently. This allows users to save their files in our secure platform and reuse the files by simply calling the URL.

Unlike, Google Drive, Dropbox, or other cloud storage providers, PDF.co has no rate limit and the files remain private. To learn more, please check out the PDF.co built-in File Storage page https://pdf.co/how-to-use-file-storage-on-pdfco

When you need to store your output files to services such as Google Drive or Dropbox, you can do it via Zapier, Integromat, or other RPA modules.

Sign Up

Related Samples: