How to

Previewing and sharing files in Amazon S3: the complete guide

How to open files in Amazon S3 without downloading them and share them safely with people outside the company, in reading order.

Founder, developer
October 7, 20265 min read
The short versionPlain termsFor builders

Previewing well means handling the formats a browser can't show on its own, without copying files out of your account. Sharing well means links that expire, can be revoked and record who opened them. Presigned URLs and correct Content-Types cover a single file; a team needs both jobs done in one place.

Getting staff into an S3 bucket is only half the job. The day-to-day friction comes after that: every PDF lands in a Downloads folder, iPhone photos won't open, a 2 GB zip has to be downloaded just to see what is inside, and sending a file to a client means a script or an email attachment nobody can take back.

This guide collects our articles on those two jobs, previewing and sharing, in the order teams usually hit them. If you haven't solved access yet, start with our guide to S3 access for non-technical teams.

Open files without downloading them

A browser can show many S3 objects inline if the object's Content-Type is right and the request asks for inline display. That works for a single PDF and stops working for Office documents, HEIC photos, large video and anything in a cold storage class. The first article compares the four ways to preview; the second lists what to check before you pick a viewer for a whole team.

Look inside archives before anyone extracts them

S3 can't unzip anything, but a zip keeps its table of contents at the end of the file. A couple of range requests read that list, so you can check the file count, the unpacked size and the paths before anything is extracted or copied to a laptop.

Share files outside the company

A link that leaves the company should expire, be revocable, know who opened it, and point at the file rather than a copy. A public object meets none of those. A presigned URL meets the first. An email attachment creates a copy you no longer control. Start with the checklist, then the mechanics of presigned URLs if you are building it yourself.

Getting files in

Previews and shares assume the files are in the bucket. If people still email files to an engineer to upload, this covers the four ways in, from the console to a workspace, and the size limits that decide between them.

The solution

Open any S3 file in your browser

BucketDesk does both jobs in one place on your own S3 bucket, connected through a scoped IAM role created by CloudFormation. Preview Office, PDF, media and zip files in the browser, and send share links with an expiry and an access code that you can revoke at any time.

Try it out now

The Minimum plan is free for one bucket.

Primary sources

Discussion

0 comments · open to guests · moderated
Comments appear after a quick review.

Liked this? Get the next article by email. No schedule, no digest, one click to leave.

Keep reading

All articles →
Let's chat

Questions? Message directly.