I surrounded the code with try/catch. Here is the exception:
(Error): Request is not open.
 fileName: 
http://localhost:8888/org.myPackage.DemoBrowse/C94D754673F94D7F17F97D760D29421B.cache.html
 lineNumber: 1803
 stack: Error("Request is not open.")@:0
setRequestHeader("Content-type","multipart/form-data")@:0
vQb([object Array])@http://localhost:8888/org.myPackage.DemoBrowse/
C94D754673F94D7F17F97D760D29421B.cache.html:1803
tG([object Object],[object Array])@http://localhost:8888/
org.myPackage.DemoBrowse/C94D754673F94D7F17F97D760D29421B.cache.html:
76
([object Array])@http://localhost:8888/org.myPackage.DemoBrowse/
C94D754673F94D7F17F97D760D29421B.cache.html:75


I think I have opened the request. Am I missing something? Can you
post your sample code that works?

Thanks


On Oct 29, 11:30 am, rakesh wagh <[EMAIL PROTECTED]> wrote:
> here is my code. Now the problem is that I dont see a server call. Due
> to earlier mentioned issue, I cannot debug in hosted mode. Any
> pointers???
>
> Factory.getInstance().createDesktop().openFiles(new OpenFilesCallback()
> {
>                                         public void filesOpened(File[] files) 
> {
>                                                 Window.alert("Files selected: 
> " + files.length);
>                                                 HttpRequest request = 
> Factory.getInstance().createHttpRequest();
>                                                 
> request.setRequestHeader("Content-type", "multipart/form-data");
>                                                 request.open("POST", 
> "http://localhost:8180/app/myserv?
> param1=val1");
>                                                 
> request.send(files[0].getBlob(), new RequestCallback(){
>
>                                                         public void 
> onResponseReceived(HttpRequest request) {
>                                                                 
> Window.alert("success");
>                                                         }
>
>                                                 });
>
>                                         }
>
>                                  });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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