Howdy, Stranger!

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

SizeLimit not working
  • Hi.
    I have this code:
    <script type="text/javascript">
    $(document).ready(function() {
    $("#uploadify").uploadify({
    'uploader':'{$_baseaddr}frontend/javascript/uploadify.swf',
    'script' : 'http://localhost{$_baseaddr}ajax.php',
    'checkscript' : '{$_baseaddr}lib/uploadify/check.php',
    'cancelImg' : '{$_baseaddr}img/cancel.png',
    'queueID' : 'fileQueue',
    'auto' : true,
    'folder' : '{$_baseaddr}uploaded',
    'multi' : false,
    'fileDesc' : 'video',
    'sizeLimit' : '3000',
    'fileExt' : '*.3g2;*.3gp;*.3gp2;*.3gpp;*.3p2;*.asf;*.asx;*.avi;*.divx;*.flv;*.mod;*.mov;*.mp4;*.mpeg;*.mpg;*.ogm;*.rm;*.rmvb;*.scm;*.swf;*.wmv;*.xvid',
    'method' : 'GET',
    'buttonImg' : '{$_baseaddr}img_/testbutton.png',
    'onComplete' : function(event,queueID,fileObj,response,data) {$('#response').append(response);},
    'onOpen' : function(event,queueID,fileObj) {$('#response').text('');}
    });
    });
    </script>

    but it allows to upload 32Mb file without error. Uploadify v2.1.0.
    Please help me someone with it.

    P.S.:Sorry I forgot to refresh page after setting limit. Now another problem: no error saying too big file or somethig, file just get stuk at 100 percent.
  • You made the size limit a string. It should be a number. Leave the quotes off it.
  • Thank you for reply but this doesn't help. File just get stuk at 100 percent without error. Whithout limit this file uploades without problem.
  • I upgraded to last version and everything working fine now so it will be good to have an function to fire on file size limit error to be able to show specific error description to user.
  • The error is fired after upload during the onError event, but I think it might make sense to do an onSelect custom function to report error when the file is added to the queue.
  • Thank you for idea, I'll try.