Please upgrade here. These earlier versions are no longer being updated and have security issues.

Feature request: Error/Feedback when upload filesize/dimension limit exceeded

This discussion is related to the ImageUpload addon.

At present, it just silently fails. Thank you!

Comments

  • AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

    Agreed!! Very frustrating for users.

    If I get around to it, I'll try to post a fix.

  • AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

    OK, it was easy so I did it. Line 20 of imageupload.js, I added

        uploader.bind('Error', function(uploader, error) {
            alert(error.message + '. Max file size is ' + gdn.definition('ImageUpload_MaxFileSize'));
        });
    

    Between

    uploader.bind('Init', function(up, params) {
            console.log("Current runtime: " + params.runtime );
        });
    

    and

    uploader.init();
    
    Bleistivthgtonight
  • AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

    @beschizza if you're still around, you may be interested I suppose.

    beschizza
Sign In or Register to comment.