Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

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

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();
    
  • AaronWebsteyAaronWebstey Headband Afficionado Cole Harbour, NS ✭✭✭

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

Sign In or Register to comment.