Howdy, Stranger!

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

sizelimit alert
  • hello friends nice work you have done i need your lil more help i want to show an alert when size is invalid or i want to show custom message for the if the size is biggerthanks here is my code

    $('#fileInput3').fileUpload({
    'uploader':'uploader.swf',
    'script':'upload.php',
    'cancelImg':'cancel.png',
    'folder':'uploads',
    'sizeLimit':'800',
    'fileDesc': 'JPG Image Files (*.jpg), GIF(*.gif)',
    'fileExt': '*.jpg;*.gif;',
    onComplete: function(a, b, c, d, e){
    if (d !== '1')
    alert(d);
    window.location = "index.php";
    },

    });
  • use onError
  • sizelimit is not working i allowe the 800 but its not uploading 10k image
  • 800 is 800 bytes. If you want 800 then you need to multiply it by 1024, as there is 1024 bytes in a KB
  • can you please tell me how can i run the mysql query after uploading
  • remove quotes on 800