[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

11/04/2009 at 04:02AM PST, ID: 24870569 | Points: 500
[x]
Attachment Details

How to support FileUpload in FireFox and Opera browser  Over SSL

Asked by vmarada in Adobe Flex

I am able to uplaod and download the file in IE using Https. But in Firefox and opera it doesnot allows to upload a file.Upload request is done to a servlet. Sample request to uplaod a file used in code:
urlRequest = new URLRequest();
                                    
                        //Set the Request Header
                         reqHeaders = new Array();
                        reqHeaders.push(new URLRequestHeader("Content-Type", "multipart/form-data"));
                        urlRequest.requestHeaders = reqHeaders;
                       
                        //Data to be passed through request
                        urlVars = new URLVariables();
                        urlRequest.data = urlVars;
                        urlRequest.url = "/TestUploadl/uploadFile"+ ";jsessionid="+ ModelLocator.jSessionId;
                        urlRequest.method = URLRequestMethod.POST;
                        try
                        {
                             fileUpload.fileReference.upload(urlRequest);
                      } catch (error:Error)
                      {
                               Alert.show("err");
                          trace("Unable to upload files." + error);
                      }
[+][-]11/12/09 09:59 PM, ID: 25811703

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625