Input type=file not working for certain types of files

This is my input command :

	echo "<p><label for=\\"userfile\\">Fichier:</label><input name=\\"userfile\\" size=\\"70\\" 	type=\\"file\\" id=\\"userfile\\" value=\\"" . "\\" />";		

and this is the processing :

$uploaddir = "../userimages/";
$uploadfile = $uploaddir . $_FILES['userfile']['name'];
$nom_doc = $_FILES['userfile']['name'];
$filesizer = $_FILES['userfile']['size'];
$filetype=  $_FILES['userfile']['type'];
$filetmpname= $_FILES['userfile']['tmp_name'];

This works just fine for jpg, png, gif, swf, but in the case of flv and other videos the $filetmpname= $_FILES[‘userfile’][‘tmp_name’]; gives me a blank instead of the temporary file name.

what am I doing wrong ?

TIA
Pat

Is the file larger than the upload limits set by PHP and Apache?

WOW, thanks , that has got to be a record time for an answer :wink:

My php.ini allows me to upload, and the max size is 8m, the files i’m trying to upload are less than that.
However I do not know where to define upload max size in apache.
For the moment I am testing on local host, and do not have a .htacess file

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
upload_tmp_dir = "c:/wamp/tmp"

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 8M

Actually , user error.
My php.ini was set to 8 mega, but I didn’t restart my local server.
I have now restarted it and all seems to be working fine on my local host.

Thanks