s3_direct_upload_example icon indicating copy to clipboard operation
s3_direct_upload_example copied to clipboard

Incorrect url

Open chriswu000 opened this issue 10 years ago • 0 comments

Hi,

Great example! I am having a problem with the download link for non images. The problem seems to be that non processed (non image) files are copied to /documents/uploads/6/original/file.txt. expiring_url and url returns something like /documents/uploads/00/00/00/6/original/file.txt

I fixed this with:

has_attached_file :upload, url: "/system/:class/:attachment/:id/:style/:filename

chriswu000 avatar Feb 03 '15 17:02 chriswu000