Hi there,
I am using imagefield for my image gallery. When I click on a thumb i get linked to the full node view.
The full node view is set up to display as "generic files", which returns a small icon with a href to the picture on my filesystem.
This is all just fine. But because my webserver displays jpg's, the user gets linked to the full size image. I would like to display a download popup when the user clicks this link to the jpg. Is this possible without having to edit my webserver settings?
The users visiting my site, aren't very experienced users, so they don't know the feature about right-clicking the link etc.
I tried "file force" module, but you have to edit the link beneath to activate this feature, and I don't want to touch this perm link in the database.
Is there any solution to this?
Thanks!
Comments
Comment #1
quicksketchFrom http://snippets.dzone.com/posts/show/6816:
Make an .htaccess file in your files directory that contains the images (hopefully you've set the ImageField settings to upload to a specific directory). Then put this in the .htaccess file:
This will cause all jpg images to download to disk rather than than showing up in the browser.
Comment #2
quicksketchI also wrote a handbook page on this for future reference: Force Files to Download Instead of Showing Up in the Browser.