Page 2 of 2

Re: Multiple fileUpload components on one page do not work

Posted: 05 Sep 2011, 21:07
by cagatay.civici
Not supported at the moment.

Re: Multiple fileUpload components on one page do not work

Posted: 06 Sep 2011, 11:37
by andyba
A simple workaround for this is to have each fileupload in its own page and bind those into the main page using an iframe for each one.
It is a bit clunky but it worked for me.

Re: Multiple fileUpload components on one page do not work

Posted: 11 Jan 2012, 14:27
by luisalves00
will this issue be fixed soon? using t:inputFileUpload because I need more than one fileupload file per form (using inside tabs...)

Re: Multiple fileUpload components on one page do not work

Posted: 11 Jan 2012, 15:20
by cagatay.civici
You can use multiple simple uploaders, limitation applies to advanced uploader. t:inputFileUpload is same as p:fileUpload mode="simple".

Multi advanced file upload is not in immediate roadmap.

Re: Multiple fileUpload components on one page do not work

Posted: 11 Jan 2012, 15:37
by garethwebbley
Sorry to jump in here but I'm a little bit confused.

I understand that the original requirement appears to be to have multiple fileUpload components. Is this the real requirement or is it to be able to upload multiple files from one form?

Won't

Code: Select all

<p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}"  
            mode="advanced"  
            update="messages"   
            multiple="true"  
            sizeLimit="100000"   
            allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>  
achieve that?

Re: Multiple fileUpload components on one page do not work

Posted: 11 Jan 2012, 16:30
by cagatay.civici
Case is having multiple advanced fileupload components in same form, sure you can upload multiple files in one form if you have one advanced uploader.

Re: Multiple fileUpload components on one page do not work

Posted: 11 Jan 2012, 17:20
by garethwebbley
OK Sorry, I'll keep my nose out then :)

Just thought I'd ask the question just in case the original poster was unaware of the "multiple" functionality.

Re: Multiple fileUpload components on one page do not work

Posted: 12 Jul 2012, 07:48
by ravisankar.vvvsrk
can we use the two p:fileupload tags for mode =simple in a same page