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

Web API engines work in any programming language: PHP, Javascript, C#, .NET and ASP.NET, Java, Visual Basic, and many others.

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.

Web API Supports Multiple Languages

PDF.co platform can be used by software developers from programming languages such as PHP, Javascript, .NET and ASP.NET, C#, Java, Visual Basic, and many others. Find source code samples in our API documentation.

Business Automation Platforms Integrations

If you are not a developer, you can also easily automate your PDF operations via popular business automation platforms: ZapierMakeAirtableSalesforceGoogle Apps Script, and 300+ more.

Enterprise Solutions

PDF.co platform runs on secure and certified cloud infrastructure. For enterprise customers, there is a Dedicated API Server available in any region of your choice.

Sign Up

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 source source code samples are available here.

The GET Pre-signed URL JavaScript source source code samples are available here.

The GET Pre-signed URL PHP source source code samples are available here.

The GET Pre-signed URL Java source source code samples are available here.

The GET Pre-signed URL C# source source code samples 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 source source code samples are available here.

The PUT File Upload PHP source source code samples are available here.

The PUT File Upload Python source source code samples are available here.

The PUT File Upload Java source source code samples are available here.

The PUT File Upload C# source source code samples 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: