I know there's a way to do this but I think it'd be neat if there was a "Link to File" option under "Format" that would link directly to the file itself. This way there's no chance of having the file (a pdf for example) open automatically by the browser.
Comments
Comment #1
dawehnerWhich field should have this option? Is it a cck filefield or the file:name field. Please try to be more specific
Comment #2
egghunter commentedI believe I'm thinking of cck filefield. For instance, if I have a "MyPDF" content type for .pdfs and I create a filefield "pdf" which uploads my .pdf files to "www.mysite.com/default/files/pdfs",
It'd be neat if there was a way I could link directly to "www.mysite.com/default/files/pdfs/thispdf.pdf"
This would make sure pdf files wouldn't open automatically. I believe browsers do this for some other file types too but I can't think of which ones right now.
Comment #3
esmerel commentedComment #4
dawehnerThis is a feature request for filefield.
Comment #5
quicksketchYou can already link to the file just by using the "Generic file" formatter. If you're using views you can also rewrite the content of a "File URL" formatter and create a link that way.