Friday, February 1, 2013

Re: How to best download a file on client side?



On Friday, February 1, 2013 3:55:55 PM UTC+1, membersound wrote:
Is there any way of sending content to the server and generating the downloadable file without submitting this content in the URL as parameter to the servlet?

Well, you can use a form with method=post.

If I were you, I'd try doing it all in JS for browsers that support it (support is rather good actually: http://www.html5rocks.com/en/features/file_access, e.g. constructing a blog and providing a download link with the blob URL), and only fallback to the "send to servlet" solution if that doesn't work. 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment