MP3 Upload & Download
Posted: Sat Apr 10, 2004 4:48 am
Hi,
I am writing code to upload and download MP3 files of size around 75 MB. I would like to do this using http. I am using this code for download this.
header("Cache-control: private");
header("Content-Type: application/mp3");
header('Content-Disposition: attachment; filename='.$file_name);
header("Content-Transfer-Encoding: binary");
readfile($GLOBALS["SHOW_ARCHIVE_PATH"].$file_name);
This code only works for downloading files less than 5 MB. However I need to download larger files.
For uploading I am using the copy function. Here also it does not allow files more than 10 MB.
Can anyone help me with the code to do this?
Thanks.
I am writing code to upload and download MP3 files of size around 75 MB. I would like to do this using http. I am using this code for download this.
header("Cache-control: private");
header("Content-Type: application/mp3");
header('Content-Disposition: attachment; filename='.$file_name);
header("Content-Transfer-Encoding: binary");
readfile($GLOBALS["SHOW_ARCHIVE_PATH"].$file_name);
This code only works for downloading files less than 5 MB. However I need to download larger files.
For uploading I am using the copy function. Here also it does not allow files more than 10 MB.
Can anyone help me with the code to do this?
Thanks.