By boozedog2 on
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
The first comment from
The first comment from quicksketch on http://drupal.org/node/1228480 may be what you are after
Thanks a million! That did
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.
I hate to be a pain in the butt,..
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....?
_
The issue linked above contains the more detailed instructions, but it does in the settings.php file.
Ya, I saw that
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?
Found it!
http://drupal.org/node/63156
My directory /sites/default
_
ah ok, it's in /sites/default/settings.php