Filter file types in file browse dialog

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpdevuk
Forum Contributor
Posts: 220
Joined: Mon Jul 04, 2005 5:31 am
Location: UK
Contact:

Filter file types in file browse dialog

Post by phpdevuk »

I've been looking at various way to change the default file filter in a browse dialog on an upload form, so far I've discovered that there was a reference in html 4.01 to an accept attribute in a file input tag that lets you specify mime types of files to be displayed, however this has never been implemented in any major browser. Following this I was left with looking for a solution of running a custom java upload applet, or a flash form to handle a file filter as standard html can't do it. I'm pretty happy with a java applet to handle this as it supports multiple uploads and works well for my particular need, but what I am wondering is if anyone else out there can think of other alternatives to this solution?
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

It's possibly to both limit accepted types and select multiple files in Adobe Flash.
User avatar
phpdevuk
Forum Contributor
Posts: 220
Joined: Mon Jul 04, 2005 5:31 am
Location: UK
Contact:

Post by phpdevuk »

yeah I found this flash upload form which seemed very configurable http://www.masrizal.com/index.cfm?fusea ... lashupload
Post Reply