Need an advice for downloading mp3 files
hey guys, I'm working on a site for a local DJ in my town, and currently can't solve this situation with the force downloads.
first of all, I have a function, which checks the /data/mixes/ folder and gets the list of the files uploaded by the owner. first, it gets the files then it sorts them by upload date. pretty simple and works like charm.
also, I have this download.php file, for force downloading the mp3 files hosted on my server. here's what happens... there are 4 mp3 files in the /data/mixes/ directory, and I can download 3 of them with no problem. but for some reason, the 4th mp3 won't come down. all the files gets their urls by the script, which looks like something like download.php?file=data/mixes/song.mp3, so I guess that's not the problem. what actually happens, firefox gives you the download window, saying downloading file x.mp3, which is a MP3 format etc etc, but the file i get is empty..I can download it with direct linking to the mp3, and how I said before, the download.php works for 3 files out of 4...i just can't get rid of it...is the mp3 corrupted? what can cause this kind of problem?
thanks in advance!
Tamas
|