Results 1 to 3 of 3

Thread: How to upload a file with Ajax?

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    2
    Vote Rating
    0
      0  

    Question How to upload a file with Ajax?

    I used the FileUploadField,but it uploads the file through form.submit?
    I have a 'card' layout form,all of the input fields are in the 1st card include a file type field,when i click "Next Step",i just want to upload an Excel to PHP using Ajax,read it and then return the data to display in the 2nd card for the users to confirm it.How can I achieve it?Thanks

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Posts
    46
    Vote Rating
    0
      0  

    Default

    if you add

    defaults: {
    xtype: "container",
    },

    to your card container, you can reach any input from any card.

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Location
    Hong Kong
    Posts
    171
    Vote Rating
    0
      0  

    Default

    read FormPanel API, and fileUpload config.

Tags for this Thread

Posting Permissions

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