You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Marco Santos <mp...@gmail.com> on 2009/05/26 12:46:02 UTC
MultiFileUploadField: How to filter file types
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
Re: MultiFileUploadField: How to filter file types
Posted by Marco Santos <mp...@gmail.com>.
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 <mp...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: MultiFileUploadField: How to filter file types
Posted by Igor Vaynberg <ig...@gmail.com>.
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 <mp...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org