ok... so... i found it works with a HttpServlet and i fond a way to
get the input stream using some jars from apache (http://
code.google.com/appengine/kb/java.html#fileforms).
Should i understand that i can't use a RemoteServiceServlet (GWT) ? or
should i change method to METHOD_GET (does that work ?)

On Feb 12, 3:18 pm, Ice13ill <[email protected]> wrote:
> 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.

Reply via email to