Hello
I use following html code to send a file upload to a php script
<form action="doupload_check.php" ENCTYPE="multipart/form-data" METHOD="POST">
<input type="file" name="file1" >
<input type="submit" value="Upload">
</form>
I am trying to write some code on doupload_check.php to verify that the file ($file1) contains the extension .tar.gz but my ereg doesn't work with the using ENCTYPE="multipart/form-data" and method post .
Any idea ? thank you