Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
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.