by danielrhodes · 12y ago · 0 comments
Here is an alternative: make a bucket with a policy where it will accept anonymous uploads (but not reads) and automatic object deletion after say 24 hours. You can then on the backend just copy the object to it's final destination. The simplicity means it becomes very versatile.
There is of course a risk that somebody will maliciously dump a huge file on you or many but it won't cost you anything because the files get automatically deleted. Furthermore, none of the files are publicly readable.
Thus, in plaintext you'd have to put only your AccessID and a policy which would expire after a few minutes.
EDIT: typo
S3 supports pre-signed urls for exactly this use-case.
EDIT: Nope, my bad. Doesn't look like S3 supports pre-signed urls for multipart uploads