Check out this tutorial on how to upload a PDF file to temporary storage using Postman and PDF.co API. It works well for big and small file upload and makes your working routine fully versatile.

  1. Open PDF.co API v.1
  2. Select File Uploader and Upload File
  3. Go to the Params Tab
  4. Send Request with cURL or Postman
  5. Send and Check Status
  6. Scroll Down and Copy the presignedURL Link
  7. Select Put Upload File and Paste the presignedURL on Put Tab
  8. Send Request with cURL or Postman
  9. Select File to be Uploaded
  10. Send and Check Status
  11. Get Result
  12. Video Tutorial: Upload a File to Cloud Storage

Follow the steps below to upload a file and get a link.

IMPORTANT: You need to set up Postman first, use this link to set up PDF.co for Postman.

Step 1: Open PDF.co API v.1

Go to Collections Tab and click on PDF.co API v.1 folder

PDF.co Postman API

Step 2: Select File Uploader and Upload File

2a. Look for and click on the File Uploader folder

File Uploader Folder

2b. Click on Upload Files folder and click GET generate secure URL

Upload Files Endpoint

Step 3: Go to the Params Tab

File Upload Params Tab

Step 4: Send Request with cURL or Postman

Option 1: You can send your request with cURL

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

Option 2: Or you can send it with Postman. To do that, enter the name of the file you want it to be stored with on the name key’s value. I will name my file as test.pdf and then set encrypt to true

File Upload Params And Keys

Note: Make sure to use the correct file extension. If you are going to upload a CSV file, enter the .csv extension for your file.

Step 5: Send and Check Status

5a. Click on the Send button

Send Button

5b. Scroll down and make sure that the Status is 200 OK.

200 OK Status Code

Step 6: Scroll Down and Copy the presignedURL Link

File Upload PresignedURL

Note: The presignedUrl is only valid for 30 minutes. If left unused within 30 minutes, a new presignedUrl has to be generated.

Step 7: Select Put Upload File and Paste the presignedURL on Put Tab

7a. Go back to Upload Files subfolder and click Put Upload File

File Upload Endpoint

7b. Paste the presignedUrl on the Put Tab’s address bar

File Upload Presigned URL

Step 8: Send Request with cURL or Postman

Option 1: You can send your request with cURL

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

Option 2: Or you can send it with Postman by going to the Body tab and selecting the Form-Data

File Upload Body

Step 9: Select File to be Uploaded

9a. Click the down-facing arrow on the file key and select File

File Upload File Param And Key

9b. Click on the Select Files button under the Value column and select the file you want to upload

File Upload Select Files Button

Step 10: Send and Check Status

10a. Click on Send button

Send Button

10b. Scroll down and make sure that the Status is 200 OK.

200 OK Status Code

Step 11: Get Result

11a. Go back to the Get presignedUrl tab

File Upload Get Tab

11b. You can now use the URL link that holds your uploaded file in the temporary storage.

URL To Access Uploaded File

Note: The URL is only valid for 1 hour. The file will automatically be deleted once the 1 hour has expired. You can upload file size of up to 2GB. It is recommended to set async key to true.

Now, you know how quickly proceed with Postman file upload and get a link to your uploaded PDF.

Upload a File to Cloud Storage – Video Tutorial