my server running apache 2.2.4 with php 5.2.1 uploaded it fine. the mp3 file was 2.68mb in size and was named "2pac - last battle.mp3". script was completely unaltered, although i removed the index.html file. also added a "max_file_size" property to index.php's code.
my server running apache 2.2.4 with php 5.2.1 uploaded it fine. the mp3 file was 2.68mb in size and was named "2pac - last battle.mp3". script was completely unaltered, although i removed the index.html file. also added a "max_file_size" property to index.php's code.
when you run the script on MY webserver? if that's so, then something is either wrong with your browser -- or maybe something to do with the file you're uploading. so, what browser are you using, and what type of file did you try to upload? how large was it? have you tried different files? does the file have the "mp3" file extension? have you tried using the stand-alone function mime_content_type() to find out what content-type it is returning on its own? (if you try this and get an error stating that the function does not exist, you'll need to enable the use of mime_magic in your PHP ini by changing mime_magic.debug to 1 or On and also verify that mime_magic.magicfile is a valid path to the mime_magic file in your PHP directory).
if it just isn't working on your webserver; I assume you're using apache, but what version? and what version of php are you using? do you have file uploads enabled in your PHP ini file? is the file larger than the maximum allowed filesize that your PHP ini has set? any custom apache configuration that might have some adverse affect on the script? you might also want to check what mime type the file is returning via the instructions above in this case, too.