Temper
06-22-2003, 03:40 AM
I've made an upload script for my site, but I can't figure out how to limit the file types. I want to be able to upload .w3g files onto my site, but I don't know how to set it up.
This is what I have:
if ($HTTP_POST_FILES['file']['extention'] != ".w3g" AND $HTTP_POST_FILES['file']['extention'] != ".w3g") {
echo "This file type is not allowed";
} else {
(upload script)
Thanks in advance.
~Mike
This is what I have:
if ($HTTP_POST_FILES['file']['extention'] != ".w3g" AND $HTTP_POST_FILES['file']['extention'] != ".w3g") {
echo "This file type is not allowed";
} else {
(upload script)
Thanks in advance.
~Mike