FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free 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
Related topics
File upload with PHP, Build an upload database for your site
Online file storage
File types
PHP-Nuke 7.8 Upload
Upload file
Upload Siteleri ve Tanýtýmlarý...
php upload issue
Upload a preset file using PHP
Which file types?
How to upload a file via html-form and php?
php upload problems
Can i upload any types of file to 'Frihost' server?
How to build simple PHP upload form
File : emailer.php yeah... it happened again.
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-2011 Frihost, forums powered by phpBB.