I'm trying to upload a file using GWT + GAE.
I want to store the file as a BLOB, but i can't get there because i
can't make the request:
my code is:
final FormPanel form = new FormPanel();
form.setAction("/ebas/fileservice");
form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);
...
submit on click
i get this exception:
Content-Type was 'multipart/form-data;
boundary=---------------------------15625134051197559972520180008'.
Expected 'text/x-gwt-rpc'
if i set this:
form.setEncoding("text/x-gwt-rpc");
i get
javax.servlet.ServletException: Content-Type was 'application/x-www-
form-urlencoded'. Expected 'text/x-gwt-rpc'.
What's the problem? and how do i handle the request since i can't
override doPost method ?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-web-toolkit?hl=en.