Discussion:
Upload progress
Volnei
2011-07-12 16:42:18 UTC
Permalink
Hi all,

Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..

Thanks

Volnei Granado Munhoz
Mihai Cazacu
2011-07-12 17:50:54 UTC
Permalink
Hi,

You can check the
sources<http://plugins.grails.org/grails-attachmentable/trunk/>of
attachmentable <http://www.grails.org/plugin/attachmentable> plugin.

Have a nice day!
Mihai
Post by Volnei
Hi all,
Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..
Thanks
Volnei Granado Munhoz
--
Mihai Cazacu
Software Engineer
E-mail: ***@gmail.com
Skype: cazacugmihai
Mobile: +40 745 254 657
Volnei
2011-07-12 19:03:48 UTC
Permalink
Thanks a lot! I will do that!

=)
Volnei Granado Munhoz
Hi,
You can check the sources<http://plugins.grails.org/grails-attachmentable/trunk/>of
attachmentable <http://www.grails.org/plugin/attachmentable> plugin.
Have a nice day!
Mihai
Post by Volnei
Hi all,
Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..
Thanks
Volnei Granado Munhoz
--
Mihai Cazacu
Software Engineer
Skype: cazacugmihai
Mobile: +40 745 254 657
Octavian Covalschi
2011-07-12 19:19:28 UTC
Permalink
What's the ultimate goal? To show a progress bar to users? If that's the
case... another approach would be to use uploadify...

PS: Just my 2 rusty cents...
Post by Volnei
Hi all,
Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..
Thanks
Volnei Granado Munhoz
Volnei
2011-07-12 19:44:57 UTC
Permalink
Yes, your are right! Upload progress bar!

Thanks, any 2 cents are always welcome!

Volnei Granado Munhoz
Post by Octavian Covalschi
What's the ultimate goal? To show a progress bar to users? If that's the
case... another approach would be to use uploadify...
PS: Just my 2 rusty cents...
Post by Volnei
Hi all,
Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..
Thanks
Volnei Granado Munhoz
Antony Jones
2011-07-12 20:07:52 UTC
Permalink
Hi There,

Also maybe check the plugin I created a while ago for this exact purpose:

http://www.grails.org/plugin/ajax-uploader

Cheers,
Ant
Post by Volnei
Yes, your are right! Upload progress bar!
Thanks, any 2 cents are always welcome!
Volnei Granado Munhoz
Post by Octavian Covalschi
What's the ultimate goal? To show a progress bar to users? If that's the
case... another approach would be to use uploadify...
PS: Just my 2 rusty cents...
Post by Volnei
Hi all,
Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..
Thanks
Volnei Granado Munhoz
--
________________________________
ꜽ . antony jones . http://www.enzy.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
wohlgemuth
2011-07-12 20:53:48 UTC
Permalink
also if you want to have it more generic and provide your own
feedback, I released a plugin containing progress bars and dialogs a
while back.

http://www.grails.org/plugin/jprogress
Post by Antony Jones
Hi There,
http://www.grails.org/plugin/ajax-uploader
Cheers,
Ant
Post by Volnei
Yes, your are right! Upload progress bar!
Thanks, any 2 cents are always welcome!
Volnei Granado Munhoz
Post by Octavian Covalschi
What's the ultimate goal? To show a progress bar to users? If that's the
case... another approach would be to use uploadify...
PS: Just my 2 rusty cents...
Post by Volnei
Hi all,
Anyone knows a way to handle a upload progress in grails?
A listener or a way to attach a ProgressListener on Spring upload handler..
Thanks
Volnei Granado Munhoz
--
________________________________
ꜽ . antony jones . http://www.enzy.org
---------------------------------------------------------------------
   http://xircles.codehaus.org/manage_email
--
------------------------------------------------------------
Lead Developer - Fiehnlab, UC Davis

gert wohlgemuth
***@googlewave.com

work:
http://fiehnlab.ucdavis.edu/staff/wohlgemuth

phone:
(530) 383-0974

coding blog
http://codingandmore.blogspot.com

------------------------------------------------------------
you're "a long time dead", as they say

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
changeOver
2013-09-25 16:28:24 UTC
Permalink
Hi Antony
Do you have a working example of how to use your plugin? I am not able to
download your plugin please point me to the correct url.

I am not using the upload servlet.. because my business flow is different as
I have to call some cloud server (via webservice)which is doing the upload
but I have to track the upload progress.
Any help would be greatly appreciated!!!

Thanks
nk



--
View this message in context: http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4649584.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Antony Jones
2013-10-02 10:11:15 UTC
Permalink
Hi There,

Sorry about the delayed response, I've been pretty busy.

The plugin is here: http://www.grails.org/plugin/ajax-uploader

Cheers,
Antony
Post by changeOver
Hi Antony
Do you have a working example of how to use your plugin? I am not able to
download your plugin please point me to the correct url.
I am not using the upload servlet.. because my business flow is different as
I have to call some cloud server (via webservice)which is doing the upload
but I have to track the upload progress.
Any help would be greatly appreciated!!!
Thanks
nk
--
http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4649584.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
________________________________
ꜜ . antony jones . http://www.enzy.org
changeOver
2013-10-02 20:42:47 UTC
Permalink
Thanks Antony!!! I will give a try..

-nk


On Wed, Oct 2, 2013 at 5:14 AM, Antony Jones [via Grails] <
Post by Antony Jones
Hi There,
Sorry about the delayed response, I've been pretty busy.
The plugin is here: http://www.grails.org/plugin/ajax-uploader
Cheers,
Antony
On 25 September 2013 17:28, changeOver <[hidden email]<http://user/SendEmail.jtp?type=node&node=4649843&i=0>
Post by changeOver
Hi Antony
Do you have a working example of how to use your plugin? I am not able to
download your plugin please point me to the correct url.
I am not using the upload servlet.. because my business flow is different as
I have to call some cloud server (via webservice)which is doing the upload
but I have to track the upload progress.
Any help would be greatly appreciated!!!
Thanks
nk
--
http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4649584.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
--
________________________________
ꜜ . antony jones . http://www.enzy.org
------------------------------
If you reply to this email, your message will be added to the discussion
http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4649843.html
To unsubscribe from Upload progress, click here<http://grails.1312388.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3662835&code=c3IubmFyZXNoa0BnbWFpbC5jb218MzY2MjgzNXwtMTczNTc1MzMzNA==>
.
NAML<http://grails.1312388.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context: http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4649862.html
Sent from the Grails - user mailing list archive at Nabble.com.
366388
2013-12-15 01:57:32 UTC
Permalink
Hi there Antony,

I have some basic problems with the ajax uploader

a) allowedExtensions does not seem to work, it gives me a js error in the
console "ReferenceError: jpg is not defined allowedExtensions: [jpg]"


heres my config:

<uploader:uploader id="activityPhotoUploaderId"
url="${[controller:'upload', action:'photo']}" multiple="true"
allowedExtensions="['jpg']">
<uploader:onComplete>....


b) temporaryFile = '/tmp/uploaded.file' - I dont think could this work in
an environment with lots of concurrent users? it could possibly be wrote
over with someone elses image. I ended up overriding your
AjaxUploadController to use a dynamic random file name


c) is there any built in way to have a 'remove' function/label so that I can
send message to server to remove the tmp uploaded file. I see there is a
onCancel callback but how is it triggered ?

hope you can help, its the best upload plugin as far as I see





--
View this message in context: http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4652468.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
sebDk
2014-05-21 08:13:47 UTC
Permalink
a) allowedExtensions does not seem to work, it gives me a js error in the
console "ReferenceError: jpg is not defined allowedExtensions: [jpg]"

It looks like it is an encoding problem.
I wrote:
/allowedExtensions="${org.springframework.web.util.HtmlUtils.htmlEscape("['png','jpg','jpeg']")}"/

and in AjaxUploaderTagLib.groovy in def uploader I added
/attrs.allowedExtensions =
StringEscapeUtils.unescapeHtml(attrs.allowedExtensions)/



-----
S.
--
View this message in context: http://grails.1312388.n4.nabble.com/Upload-progress-tp3662835p4656965.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...