Upload PDF file to AWS S3 bucket?

Has anyone successfully attempted to upload a PDF file to AWS S3 bucket? Tried many ways like using AWS SDK for JS library or using AWS S4 Signature but it doesn’t work.

I used this library for AWS SDK for JS: ‘https://sdk.amazonaws.com/js/aws-sdk-2.1033.0.min.js’

Saved it as JS file and upload it to File Cabinet and reference that in my script. But always getting a statusCode: 40x response.

Rookie Asked on April 18, 2024 in SuiteScript.
Add Comment
1 Answer(s)

Update – Upload works now. But when viewing directly from the bucket, the PDF are not readable. I tried to download the file and open it via Preview but still not readable.

Rookie Answered on April 18, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor