I am trying to upload file using EXtjs .
{(
    fileUpload: true,
    autoHeight: true,
    width: 300,
    labelWidth : 100,
    bodyStyle:'padding: 5px 5px 0',
    items: [{
        xtype: 'fileuploadfield',
        fieldLabel: 'File',
        name: "fileField",
        width: 250,
        id :'filenamewo'
    }]
userForm.getForm().submit({
    url : "uploadFile.do",
    method: 'POST',
    headers: {'Content-Type':'multipart/form-data; charset=UTF-8'}
})
After submit, in servlet I can get file content, but it also contains header details as show below:
------WebKitFormBoundaryOAN4TnbKHJgVxoMV
Content-Disposition: form-data; name="fileField"; filename="testsxls.xls" 
Content-Type: application/vnd.ms-excel
------
WebKitFormBoundaryOAN4TnbKHJgVxoMV--
I want to get the file content out of this request payload.
I am very new to EXtjs and struts
I am using EXTJs 3 and Struts with JAVA.
My basic requirement is to upload file(.xls).
Its existing project, just need to add a feature to upload the file to server.
Can some one help me?
Thanks in advance.
