1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    227
    Vote Rating
    2
    nicolabaldo is on a distinguished road

      0  

    Default upload max_file_size

    upload max_file_size


    I use a form with an Ext.form.field.File component.
    When i click it, it appears a dialog box: Is it possible to set max_file_size and filter only the file with .png extension??

    This is my code:

    var form = this.up('form').getForm();
    form.submit({
    url:url,
    waitMsg: msg,
    waitTitle: title,
    success: function(t,o) {
    ...
    }
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,637
    Vote Rating
    400
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This is usually handled at the server, or there is ActiveX for this. I did see this post, but it is browser specific:

    http://www.sencha.com/forum/showthread.php?145804

    Regards,
    Scott.

  3. #3
    Ext JS Premium Member gevik's Avatar
    Join Date
    May 2009
    Location
    The Netharlands
    Posts
    265
    Vote Rating
    8
    gevik will become famous soon enough

      0  

    Default


    AFAIK, you don't have access to the file system directly from JavaScript. In the past I have use a small flash component (or in case of IE, an ActiveX component), which provided multi-file uploading,
    and size checking.

    Setting the max upload size on the other hand is handled on the server.

    I hope this helps.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar