file_get_content_headers also sets the 'Content-Disposition' and - if it acts later than file_force and thinks that the file is an $inline type, it sets the 'Content-Disposition' to 'inline'.

At least in one of our sites, both file.module and file_force.module have a system weight of 0. This meant that file_force attachments were being shown in the browser and not downloaded.

Setting the weight explicitly on file_force solved this problem for us:
UPDATE `system` SET `weight` = '10' WHERE `name` = 'file_force';

Comments

arski’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Fixed

aight, this was already being set for new installs, but not updated for d6 upgrades, which I assume is where you're coming from. Fixed now.

Status: Fixed » Closed (fixed)

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