"the file cannot be found
try one or more of the following:
check the spelling or the name of the document
try a different filename
(C:\...\K1M7YVA1\file1[1].doc)".
if i click save the file is saved and then when i go to open it, it opens fine with the same filename that it was uploaded with.
if i try to open or save the files in netscape however it works fine! i have no idea why it fails in explorer yet works in netscape. i have checked the database table holding the files after they are uploaded and the filename,size and type are all stored correctly. here is the main part of the code im using for downloading:
Code: Select all
<?php
$size = //function to get file size from database;
$type = //function to get file type from database;
$name = //function to get file name from database;
$data = //function to get file data from database;
ob_end_clean();
header("Content-length: $size");
header("Content-type: $type");
header("Content-Disposition: attachment; filename = $name");
echo $data;
?>can anyone help me out with these problems,thanks!