Hi all !!
Please help me out in solving the problem of file downloading.
I have given a link for the file download. Onclick of the same i am calling sending it to the file dnfile.php which has the header included as shown below.
Header ( "Content-Type: application/octet-stream");
Header ( "Content-Length: ".filesize(2000));
Header( "Content-Disposition: attachment; filename=$row[var_file_fname]");
@readfile($p);
while uploading the files, I am generating a filename as per the convention (different from the actual filename). the $row[var_file_fname] passed to the header is the original filename. I wanted to know how do i refer to the filename which has to downloaded. Is there any header for that?
Thanks
Shyla.