Results 1 to 2 of 2

Thread: Use Sencha Touch to upload file

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    2

    Post Use Sencha Touch to upload file

    I'm only test on andriod simulator[IMG][/IMG]senchTouch_upload.jpg

    {
    xtype: 'form',
    id: 'frmInfo',
    scroll: 'vertical',
    margin: '0 0 0 0',
    standardSubmit: true, //executes a standard HTML Form
    //waitMsgTarget: true,
    //dockedItems: [this.funBar],
    items: [
    xtype: 'urlfield',
    id: 'fileAttach',
    name: 'fileAttach',
    label: 'Upload File',
    inputType: 'file'
    }],
    listeners: {
    afterrender: function(frm){
    //set the attribute of enctype and method
    Ext.getDom('frmInfo').enctype = 'multipart/form-data';
    Ext.getDom('frmInfo').method = 'POST';
    }
    }
    }

    //submit form
    var form = Ext.getCmp('frmInfo');
    form.submit({
    url: this.saveURL,
    method: 'POST'
    //waitMsg: {message:'saving...', cls : 'demos-loading'}
    });

  2. #2
    Sencha User Hanni Sullivan's Avatar
    Join Date
    May 2011
    Location
    Constance, Germany
    Posts
    84

    Default

    And what exactly is your question?

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
  •