4 ms·
The fastest code is that which is never run. Don't upload files to a server if you're using S3. Upload directly to S3 with client-side code instead.
by deedubaya 9y ago
The fastest code is that which is never run.
Don't upload files to a server if you're using S3. Upload directly to S3 with client-side code instead.
- griffinmb 9y agoI'm sure it's possible to do this securely, but in general this seems like a sure-fire way to expose your secret keys.
- keketi 9y agoThe secure way to do it is using pre-signed URLs: http://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html http://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlU...
- bpicolo 9y agoIt's a lot easier to bootstrap the backend-style. Even in client-side world you still have to do plenty in the backend to manage knowledge of the existence of said images.