Your code is great but I found out it is not finding all kinds of false formats:
testtext.txt
testtxt.
badcode.gif.php
...and so on...
Some files were rejected, but without error warning.
I played around and found this to work better:
// Let's see if we want this type of file
if (!preg_match("/(\.jpg|\.gif)$/i","{$HTTP_POST_FILES['U_PIC_FILE']['name']}")) {
What would yo say to that code?
Greetings
Last edited by caymuc; 03/09/2002 10:47 AM.