FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Filter File Types in PHP File Upload

 


kajasweb
Hello Everyone...

I'm developing a Upload module in PHP. I don't know how to create a filter in such a way that the user can select ONLY Picture Files (i.e., JPG, GIF, PNG).

Please help me in PHP Scripting. I'll be thankful to you.

R. Kaja Mohideen
mathiaus
Despite my undying devotion to php, this easier and more simple in javascript. This little script only allows .gif .jpg or .png and wont process any form information on the server so it cuts down on bandwidth wich would otherwise be using if rules on the file.

anyway the script http://javascript.internet.com/forms/upload-filter.html

Hope that helps
Matt Smile
kajasweb
Hello Matt,

Thanks A LOT !!!

I'm struggling for this about a day to get in some HTML Attributes or go for ASP. You have made it simple for me. Once again Thank you for your Help.

R. Kaja Mohideen
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.