Closed Bug 403624 Opened 17 years ago Closed 17 years ago

Content-Disposition's filename is being ignored

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 299372

People

(Reporter: tilli, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 I'm using a small script to download files via PHP: header('Content-Type: application/x-zip'); header('Content-Disposition: attachment; filename="archive.zip"'); header('Content-Transfer-Encoding: binary'); header('Content-Length: '.filesize($file)); readfile($file); I'm redirecting the files like this: http://domain.com/download.php?file=archive.zip and it works fine, but If I right click save as this href I'm getting the download.php in the save as dialog, instead of archive.zip This happens also if I'm using: header('Location: http://domain.com/archive.zip'); in the PHP script. Reproducible: Always Actual Results: downloading download.php Expected Results: downloading filename.ext
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.