ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2331


Ignore:
Timestamp:
Mar 29, 2007, 6:05:29 PM (15 years ago)
Author:
takanashi
Message:

Content-Dispositionの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/develop/2_8RC2/public_html/download.php

    r2297 r2331  
    3434$file = db_file_c_file4filename($_GET['filename']);
    3535$original_filename = preg_replace("/\r|\n/", '', $file['original_filename']);
    36 header('Content-Disposition: inline; filename="' . $original_filename . '"');
     36header('Content-Disposition: attachment ; filename="' . $original_filename . '"');
    3737header('Content-Length: '. strlen($file['bin']));
    3838header('Content-Type: application/octet-stream');
Note: See TracChangeset for help on using the changeset viewer.