Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect url #5

Open
chriswu000 opened this issue Feb 3, 2015 · 0 comments
Open

Incorrect url #5

chriswu000 opened this issue Feb 3, 2015 · 0 comments

Comments

@chriswu000
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant