I've written PHP scripts to upload and download files from a website. I use move_uploaded_file to upload files, and readfile (after setting HTTP headers) to download files. I specify a MIME type of "application/audio/mpeg" for mp3 files in the download script.
In the "Opening" window that appears when I run the download (giving me options to Open or Save on my computer) the file shows as "application/audio/mpeg", which is the MIME I'm setting in the download script. If I Save the file, it downloads fine but it won't open - it appears with a File Type of "File" in Windows Explorer. If I Open the file from the "Opening" window (instead of Save) using WMP11, it says "The selected file has an extension (.) that is not recognized by Windows Media Player". If I click "Yes", the file plays fine.
Prior to any uploads or downloads, I'm able to play this mp3 file on my computer using WMP11 without a problem (appears as File Type "MP3 Format Sound). After I upload it with my upload script, it appears on the server with the same File Type, so seemingly, it's okay at that point.
Any ideas are sincerely appreciated!