K
Karl R
Guest
Hello.
I'm creating a file upload script for a web application I am developing. I only want .swf files to be uploaded and no others.
At the moment to test it I validated my upload system for png's and jpg's like this:
$filetypes = array ('image/pjpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png');
How would I change this so it would only be able to upload .swf files.
Thank you in advance for any help
Karl..
I'm creating a file upload script for a web application I am developing. I only want .swf files to be uploaded and no others.
At the moment to test it I validated my upload system for png's and jpg's like this:
$filetypes = array ('image/pjpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png');
How would I change this so it would only be able to upload .swf files.
Thank you in advance for any help
Karl..