Results 1 to 2 of 2

Thread: File Upload using

  1. #1

    Question File Upload using


    I am just trying to upload a file using the connection.request() object. See the code below is used.

    url: /ajaxjsps/SubmitActivityAjaxStep2.jsp',
    params: 'cid='+cid+'&activityid='+aid+'&type=before',
    method: "POST",
    isUpload: true,
    form: file,
    headers: {'Content-type':'multipart/form-data'}
    function processResult(response) {
    var json = Ext.util.JSON.decode(response.responseText);

    *Could upload file successfully but as the response is /ajaxjsps/SubmitActivityAjaxStep2.jsp' this jsp file getting download.
    * callback function not called.
    *If I save and open the aboce jsp file then I could see my response text there.

    I dont know why it is like that.

    Any help would be helpful for me a ltot. Thanks...

  2. #2
    Sencha Premium User dawesi's Avatar
    Join Date
    Mar 2007
    Melbourne, Australia (aka GMT+10)


    file upload does not return a response in the current state (2.0.1). You can fire another connection to check with your system if it was ok.

    Other extensions are available if you need feedback from your process
    Cloud Application Architect

    Sencha Specialist / Sencha MVP / Sencha Technical Trainer
    ExtJs Developer + Contributor since 0.2.2 - Champion of the per developer license.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts