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,918
    Vote Rating
    443
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi