Re: MultiFileUploadField: How to filter file types

2009-05-26 Thread Igor Vaynberg
even max size is checked serverside, you may be able to do the same
for file types. alternatively you can hook in with a javascript by
adding an onchange event and possibly rejecting a file.

-igor

On Tue, May 26, 2009 at 3:46 AM, Marco Santos mpssan...@gmail.com wrote:
 Hello there.
 Im using the MultiFileUploadField but i would like that the user could just
 see/choose some type of files. for instance, he could only select jpeg
 or/and png files. I notice that is possible to specify the max size of a
 file. Is possible to specify the type files that the user can select?

 Thanks a lot

 --
 Marco Santos


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: MultiFileUploadField: How to filter file types

2009-05-26 Thread Marco Santos

I already thought about that, but like it implicates to change the original
javascript file, i was trying not to do it, but i already changed it a
little bit, i guess it would not make worse to change more a little bit. I
changed it to short the name of the selected file from the path to just the
name of the file.

Thanx a lot


igor.vaynberg wrote:
 
 even max size is checked serverside, you may be able to do the same
 for file types. alternatively you can hook in with a javascript by
 adding an onchange event and possibly rejecting a file.
 
 -igor
 
 On Tue, May 26, 2009 at 3:46 AM, Marco Santos mpssan...@gmail.com wrote:
 Hello there.
 Im using the MultiFileUploadField but i would like that the user could
 just
 see/choose some type of files. for instance, he could only select jpeg
 or/and png files. I notice that is possible to specify the max size of a
 file. Is possible to specify the type files that the user can select?

 Thanks a lot

 --
 Marco Santos

 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MultiFileUploadField%3A-How-to-filter-file-types-tp23720718p23733477.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org