s3_direct_upload_example
s3_direct_upload_example copied to clipboard
Incorrect url
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