9 Replies Latest reply on Jun 3, 2008 8:28 AM by Nico3854

    Help to make FileReference.upload to work on remote server with AIR app

      Hi, I try to upload file with AIR desktop application with Flex. Web server is JBoss 4.2.2.GA. I use
      _uploadFile = new File(fileName);
      var request:URLRequest = new URLRequest();
      request.url = _strUploadDomain+"ldap/files.seam";
      request.method = URLRequestMethod.POST;
      _uploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
      _uploadFile.addEventListener(Event.COMPLETE, onUploadComplete);
      _uploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
      _uploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
      _uploadFile.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, onUploadCompleteData);
      _uploadFile.upload(request, "Filedata", false))

      It work if the web server is localhost, but if I use another web server nothing could be uploaded. No error, no message in AIR application . The server application have not received the HTTP request. If it is localhost server a application receive request.

      Thanks in advance for any tips or hints on this.