Web Threads » Development » Drupal: mq4 File Attachments Open As Plain Text
Drupal: mq4 File Attachments Open As Plain Text
A quick fix this morning for a client with a Drupal issue, links to mq4 files were opening as plain text in the browser window instead of presenting a download file prompt.
This is due to the server configuration, apache mime-types. It is usually easily fixed in an .htaccess file.
AddType application/octet-stream mq4If that doesn’t sort the issue after clearing the browser cache, you can also try adding:
<Files *.mq4> ForceType application/octet-stream Header set Content-Disposition attachment </Files>
See also:
Drupal Mime-Types
Apache mod_mime
Apache htaccess directives
Filed under: Development · Tags: apache, drupal, htaccess




Like









