I'm using private file store ... what I'm finding is that PDFs I upload using IMCE render in my browser as normal, but when I use a File field to upload an attachment, then that attachment always pops the download dialog in my browser.

I'm hoping there's a setting somewhere so I can tell Drupal not to force download for files uploaded using a File field?

Thanks!

Comments

geekglue’s picture

The first comment from quicksketch on http://drupal.org/node/1228480 may be what you are after

boozedog2’s picture

Thanks a million! That did the trick.

For others who may be wondering, here's exactly what I added to my settings.php:

$conf['file_inline_types'] = array('application/*', 'image/*', 'text/*', 'flash$', 'audio/midi?');

Note that I'm running Drupal 7.

douglasbeale’s picture

I'm new at all this, and I cant find the right file to insert the code into.
Please, could someone provide me with breadcrumbs....?

WorldFallz’s picture

The issue linked above contains the more detailed instructions, but it does in the settings.php file.

douglasbeale’s picture

I did read that, and understand it. Just don't know where to find the settings.php file. maybe i'm looking in the wrong file? I'm looking in:

My directory /modules/field/

this has a php called "field.api.php"

My directory /modules/field_ui/

this has a php called "field_ui.api.php"

My directory /modules/file/

this has a php called "file.api.php"

I cant find settings.php in any files

Or..should it go in MYSQL configuration file?

douglasbeale’s picture

http://drupal.org/node/63156

My directory /sites/default

WorldFallz’s picture

ah ok, it's in /sites/default/settings.php