1. #1
    Ext User
    Join Date
    May 2009
    Posts
    59
    Vote Rating
    0
    catapult is on a distinguished road

      0  

    Question inputType: file - reset field in IE

    inputType: file - reset field in IE


    Hi all,

    I have a form with a textfield set with "inputType: file". Everything works fine when I submit the form, the file uploads lovelly. When I get the response back I want to reset the field to allow uploading another file. I don't seem to be able to do this in IE. Other browsers seem to work correctly.

    I have tried:

    getForm(); form.reset();

    Ext.getCmp('uploadfile').reset();

    Ext.getCmp('uploadfile').setValue('');

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    I have an file upload class. The way I implement reset is to remove the <input> element and insert a new one named the same in its place.

  3. #3
    Ext User
    Join Date
    May 2009
    Posts
    59
    Vote Rating
    0
    catapult is on a distinguished road

      0  

    Default


    Thanks Animal. I'll play around with that.

Similar Threads

  1. Reset the input type file field to blank
    By programmer@blore in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 25 May 2012, 12:43 AM
  2. How to reset the textfield component with inputType: 'file'?
    By ScytheV in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 3 Feb 2010, 3:46 AM
  3. inputType:file
    By WutongDeath in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Jul 2008, 9:44 PM
  4. How to reset a Value in (inputType: 'file') field?
    By boriscy in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 9 Jul 2008, 6:00 AM

Thread Participants: 1