I'm using a simple uploading script that uses a submit form and a upload.php file which puts the file in a directory. My problem is that I have no idea how to restrict the files to being just jpgs and gifs.
I've tried to search through the entire forum and most of them suggest using a MIME function which my server does not have. Is there anyway to grab the filename and check if it's the valid file type before it uploads to the directory?
I'm using the function move_uploaded_file file, is it better using just copy?
Thanks in advance,
Kristofer.
Ps.
Sorry about my English, not my native language really.
Ds.