s3_direct_upload icon indicating copy to clipboard operation
s3_direct_upload copied to clipboard

Setting expiration in form helper doesn't do anything

Open guyisra opened this issue 10 years ago • 1 comments

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?

guyisra avatar Nov 28 '14 07:11 guyisra

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.

mcbsys avatar Aug 06 '15 23:08 mcbsys