if I don't use a FormPanel and form.submit but plain HTML <form> stuff
instead, uploading files to the blobstore works fine!
com.xy.client.MyProject.java
(...)
fileService.getUploadURL(new AsyncCallback<String>() { // <<<-
BLOBSTORE.REQUESTUPLOADURL HERE!
public void onFailure(Throwable error) {
}
public void onSuccess(String url) {
upUrl = url;
}});
String uploadForm = "<form action=\"" + upUrl + "\" method=\"post\"
enctype=\"multipart/form-data\"><input type=\"file\" name=\"upfile
\"><input type=\"submit\" value=\"Upload\">";
mainPanel.add(new HTML(uploadForm));
(...)
everything else is the same!
Can anyone explain this to me? Why does the usage of FormPanel and
form.submit() end up in "Uncaught exception from servlet
java.lang.OutOfMemoryError: Java heap space"? Is there a workaround to
fix this?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.