0 Replies Latest reply on May 19, 2007 5:51 AM by Ashish Mishra

    Not getting the Request Parameters on Server.

    Ashish Mishra Level 1
      HI Friends,

      In my FileUpload program, I am sending a Request using, URLRequest. I am adding data using URL Variable in following way:

      var params:URLVariables = new URLVariables();
      params.folder = fileRef.name;
      params.size = fileRef.size;
      params.type = fileRef.type;

      var req:URLRequest = new URLRequest(" http://localhost:8080/visionmail/upload.do");
      req.method = URLRequestMethod.POST;
      req.data = params;
      req.contentType ="multipart/form-data";
      fileRef.upload(req,"This is Custom Data", false);

      But At the Server side, I am not able to get the request parameters. Can somebody tell me what is the problem?
      Or how to reterive it on server, I am using

      java.util.Enumeration e = request.getParameterNames();
      to get all the request parameter names at server side, but it is not able to get the request data. Can somebody tell what could be the problem?

      Thanks in advance for your help.