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

public_filename does not return relative path #12

Open
drbawb opened this issue Apr 2, 2010 · 1 comment
Open

public_filename does not return relative path #12

drbawb opened this issue Apr 2, 2010 · 1 comment

Comments

@drbawb
Copy link

drbawb commented Apr 2, 2010

If the application is running in a sub-directory, public_filename does not appear to return the relative path.

@technoweenie
Copy link
Owner

I'm not using the master anymore (I use the rewrite branch), so I can't confirm: I think you just need to set your own base_path.

http://github.com/technoweenie/attachment_fu/blob/master/lib/technoweenie/attachment_fu/backends/file_system_backend.rb#L27-29

If your full attachment path is /foo/public/images/file.gif, then your base_path should be /foo/public, making the public path /images/file.gif.

j1wilmot pushed a commit to Punchbowl/attachment_fu that referenced this issue Jul 11, 2017
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

2 participants