Howdy, Stranger!

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

onComplete issue
  • Hi, please see below code, when file is too big it should do nothing but after if I will upload correct sizelimit file I'll get

    Test

    twice, I think there should be an event onSuccesfull

    sorry for my english


    <script type="text/javascript">

    $(document).ready(function() {
    $("#uploadimage").fileUpload({
    'uploader': 'uploadify/uploader.swf',
    'cancelImg': 'uploadify/cancel.png',
    'script': 'uploadify/upload.php',
    'folder': 'files',
    'fileDesc': 'Image Files',
    'fileExt': '*.jpg;*.jpeg;*.png;*.gif',
    'multi': false,
    'auto': true,
    'sizeLimit': 104850,
    onComplete: function (event, ID, fileObj, response, data) {
    $('#photos').append('<p>Test</p>');
    },
    onError: function (event, queueID ,fileObj, errorObj) {
    $("#uploadimage" + queueID).fadeOut(250, function() { $("#uploadimage" + queueID).remove()});
    return false;
    }
    });
    });

    </script>
    </head>

    <body>
    <div id="uploadimage">You have a problem with your javascript</div>
    <div id="photos"></div>
    </body>