December 4, 2026
Stop sending your cloud storage keys to clients
How to let people upload files straight into your S3, R2 or Wasabi bucket with a link that expires, in code or without it

By Nubbo
4 min read
Sooner or later someone needs to send you files that belong in your cloud storage: a client with raw footage, a designer with final assets, a partner with scanned contracts. They have no account with your provider, and the quick fix of handing them an access key is one of the riskiest shortcuts in cloud storage. There is a better way built into S3 itself, and you can use it with a few lines of code or with no code at all.
How do I let someone upload to my S3 bucket without giving them my keys?
Give them a presigned upload URL, or a link that generates those URLs for them. A presigned URL lets one person write one object until it expires, and the bucket stays private.
You can sign those URLs in your own code or use a file request link from a tool such as Nubbo, which signs each upload for you and sends the file straight from the sender's browser to your bucket.
Why sharing your access keys is a bad idea
An access key is not a link. It is a credential with every permission its IAM user has, and it does not expire on its own.
- It does more than upload. Unless you wrote a tight policy, the same key can list, download, overwrite and delete.
- It never ends. It works until you deactivate it, long after the project is over.
- It looks like you. Anything done with it is logged under your IAM user, so you cannot tell one sender from another.
- Cutting one person off hurts everyone. If two clients share a key, revoking it for one revokes it for both and for any script that uses it.
- It travels. Keys pasted into email or chat end up in places you do not control.
The same reasoning applies to keys from any S3-compatible provider.
The developer way: presigned upload URLs
A presigned URL carries a signature that allows one operation on one object. AWS puts it plainly: "Using a presigned URL will allow an upload without requiring another party to have AWS security credentials or permissions."
Your server signs an upload for one file name, hands the URL to the browser and the browser sends the file straight to the bucket. Your server never touches the file, and signing does not even call S3: the signature is computed locally. With the AWS SDK for JavaScript it is one call:
const url = await getSignedUrl(
s3,
new PutObjectCommand({ Bucket: 'my-bucket', Key: key, ContentType: contentType }),
{ expiresIn: 900 }
)const url = await getSignedUrl(
s3,
new PutObjectCommand({ Bucket: 'my-bucket', Key: key, ContentType: contentType }),
{ expiresIn: 900 }
)A few things decide whether it works the first time. The server should pick the file name, for example with a random prefix, so one visitor cannot overwrite another's file. The browser has to send exactly the content type the URL was signed with, or the upload is refused. The bucket needs a CORS rule that allows uploads from your website. The same code works with Cloudflare R2, Wasabi, Backblaze B2 and DigitalOcean Spaces, since presigned uploads are part of their S3 API.
Where presigned URLs run out
The signature is solid. Everything around it is yours to build.
- Expiry has a ceiling. Up to 7 days when signed with IAM user keys, and often an hour or a few hours when signed with temporary credentials such as a server role.
- Anyone with the URL can use it. AWS calls presigned URLs bearer tokens: they work as many times as needed until they expire, and you cannot revoke one on its own.
- No size or type limit on the upload URL. Another mechanism, presigned POST, can set those, but not every provider supports it (R2 does not), so you check before you sign.
- One URL, one file. Ten files means ten signatures, and files above 5 GB need a multipart upload with one URL per part.
- No page and no notice. You still need a form for senders and a way to know a file arrived.
If you are building your own app and uploads belong inside it, that work is worth doing. If you just need people to send you files, it is a lot of code for a drop box.
The no-code way: a file request link
A file request, which Nubbo also calls an inbox, is a public upload link for a folder of your bucket. People open it in any browser and upload without an account. Underneath it is the same presigned pattern: each file goes from the sender's browser straight to your bucket with a presigned URL. Nubbo signs the upload and keeps only the name, size and path as an index.
Setting one up:
- Connect your bucket. Amazon S3, Cloudflare R2, DigitalOcean Spaces, Wasabi, Backblaze B2 or another S3-compatible endpoint. The bucket stays private and your keys are stored encrypted with AES-256-GCM. The connect wizard sets CORS for you when the key allows it.
- Create a file request and choose the folder where files arrive.
- Send the link.
- Get notified. Nubbo emails you and shows a notification when files arrive, and new arrivals carry a "Not reviewed" marker. The files are already in your bucket.
What you can set on each link:
- Password: 4 to 50 characters.
- Expiry: the link stops accepting files on that date.
- Limits: a maximum file size and a maximum number of uploads.
- File types: only the extensions you allow; empty accepts any.
- Sender details: ask senders for their name, as required or optional; they may add their email.
That covers most of the gaps above: size and type limits, an end date you choose, a page senders can use and a notice when something lands.
The Free plan includes 3 file requests; Personal, Pro and Teams have no limit. On paid plans a file request can also be encrypted in the sender's browser, so neither Nubbo nor your provider can read what arrives. From Pro you can embed the same upload form on your own site, and the n8n, Zapier and Make integrations can start a flow on every upload.
Which one should you use?
- You are building an app and want uploads inside it: sign presigned URLs in your own code.
- Your React app already runs on AWS Amplify and its users sign in through it: Amplify UI's FileUploader component, which works with Amazon S3 only.
- You just need people to send files into your bucket, on any provider, without code: a file request link.
Either way, nobody gets your keys.
To connect your bucket, follow the Amazon S3 guide (there are guides for R2, Wasabi, B2 and Spaces too). The options compared step by step are in how to let anyone upload files to your S3 bucket. Nubbo has a Free plan with no card that includes 3 file requests.