I've given up trying to get MP4 files to work on Firefox, so am now
trying to upload FLV files instead (which appear to work on all
browsers, life is too short!)...
So all good... it works...
http://www.steveholbrook.co.uk/pages/site.php?pgid=239
BUT, I cannot get my PHP to upload the FLV files... the code is as
follows (in PHP) :-
$fileType = $_FILES['file']['type'];
$filename = "";
if ( $fileType == "application/msword" || $fileType ==
"application/pdf" || $fileType == "audio/mpeg" || $fileType == "x-flv"
) {
$filename = $_FILES['file']['name'];
copy ($_FILES['file']['tmp_name'], "../files/"
. $filename) or die("Failed to upload file");
}
For some reason on my .flv file $fileType is coming out blank... and,
yes, I have the multi-part encoding etc. on the form as it is working
fine with the audio and with the word/pdf files (it is a generic
upload routine).
Any ideas?
Sean