s3_direct_upload
s3_direct_upload copied to clipboard
Setting expiration in form helper doesn't do anything
No matter what date and time I put in the expiration in the form helper, aws still doesn't recognize the object expiration, leaving it without expiration
Is this a known issue?
Not working for me either. I wonder if the policy setting here has to do with when the upload signature expires (as used in jquery-file-upload, which I think this gem uses: https://github.com/blueimp/jQuery-File-Upload/wiki/Upload-directly-to-S3).
It looks like it is possible to set the lifecycle expiration for individual objects, but it must be set at the bucket level. See http://stackoverflow.com/questions/21485757/rails-aws-sdk-set-expiration-date-for-objects. For my purposes, I may just define a top-level temp
folder in my bucket and set the expiration on that to one day.