Page 1 of 1

fileupload trigger

Posted: 20 Oct 2011, 14:19
by Manu206
I'm using the fileupload component since 2.2.1 release. Now with 3M3 I recognized that something changed.
I triggered the fileupoload in my managed bean with context.execute("fileupload.upload()").
But it seems that this function is deprecated?!?

Any idea how to trigger fileupload with javascript or with a custom button in 3M3 or 3M4?

Re: fileupload trigger

Posted: 16 Jul 2012, 23:26
by redder
Hi,
I've been trying to achieve that for a while... has anyone found a way to do that?
I've tried to simulate a click on all the elements of

Code: Select all

<div class="ui-fileupload ui-widget">
(which seems to be the root element for the upload control) using jQuery, but I've got no success on that. I also looked at the fileupload.js, but (if I'm not wrong) it doesn't seem to have any function for show the upload box (to select the files)...
Any ideas?

Using:
Primefaces 3.3.1; Mojarra 2.1.10; Tomcat 7.0.23; Chrome 18; Ubuntu Linux 12.04

Regards,

Redder

Re: fileupload trigger

Posted: 10 Jul 2013, 18:33
by ivan_skr
It seems that you won't get support any more if you not a PRO user...

Re: fileupload trigger

Posted: 10 Jul 2013, 21:57
by andyba
ivan_skr wrote:It seems that you won't get support any more if you not a PRO user...
You certainly won't motivate the many volunteers or dev team here if you insult us and break other forum rules which you have just done.