Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to enable sizeLimit?
  • i've setted as followi ng:
    $("#fileUpload2").uploadify({

    'uploader': '/static/xheditor/uploadify/uploadify.swf',

    'script': 'uploadify/upload.php',

    'folder': 'files',

    'multi': true,

    'buttonText': 'Select Files',

    'displayData': 'speed',

    'fileDesc': '*.rar;*.exe',

    'fileExt': '*.rar;*.exe',

    'sizeLimit': '20971520',

    'cancelImg': '/static/xheditor/uploadify/cancel.png'

    });
    all works well except sizeLimit.
    no error displayed whenever i choose a file larger than 3MB or More.
    is sizeLimit useless now?if not,can anyone tell me how to enable it?
    thx.
  • you can upload 3Mb files with out error because you have sizeLimit set to 20Mb
  • You must assign integer type instead of string type.


    'sizeLimit': 2048, // 2 MB
  • The user and all related content has been deleted.
  • Thank you pajelawrence! It was not obvious to understand that the sizeLimit (or fileSizeLimit with uploadify 3.0) was in KBytes and not in Bytes as the description says.
  • Quick note:
    In the latest version its fileSizeLimit.

    e.g.

    'fileSizeLimit': '2MB'