Page 1 of 1
upload form
Posted: Wed Dec 07, 2005 9:52 pm
by volito
$upload->set_acceptable_types('image'); // comma separated string, or array
How do I get this to also except plain text file. Using an upload form for images and would like to let users upload small text file.
Posted: Thu Dec 08, 2005 1:31 am
by shiznatix
well we would have to see this class that you are dealing with.
beware, there is no real way of telling if it is a txt file or not for sure. the only way that comes to mind is strpos for .txt but I can still have a file bad_virus.exe.txt and it would still run as a exe and thus be a very big security problem.
Posted: Thu Dec 08, 2005 5:56 am
by volito
OK sounds logical .
What I am trying to do is actually add a comments section to my multi upload form.
To be honest I am new to PHP and get my scripts from online sources "free or purchased"
I use this form for only select few to upload pics and highlights of a game.
Any ideas will be greatly appreciated.
Thanks !