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

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Which field should have this option? Is it a cck filefield or the file:name field. Please try to be more specific

egghunter’s picture

I 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.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active
dawehner’s picture

Project: Views (for Drupal 7) » FileField
Version: 6.x-2.10 » 6.x-3.x-dev
Component: files/upload data » Code

This is a feature request for filefield.

quicksketch’s picture

Category: feature » support
Status: Active » Fixed

You 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.