Hello,
since the last update (we are on a managed environment) our upload functionality seems broken but we aren’t doing any magic.
We simply register a new api.addComposerUploadHandler() from within a theme component.
This used to work great with multiple files dragged to the composer. Now the there are errors thrown in the console which seem to be related to Uppy (why we don’t want).
Our code is really simple, but still, Uppy seems to interfere with it.
// Register custom upload handler for videos.
api.addComposerUploadHandler(["mp4", "mov", "mkv", "avi", "m4v"], (file, editor) => {
console.log("Handling upload for", file.name);
})
Dropping 3 files (mkv, mov, mkv) on the composer shows the “your file is larger than 4 MB” error message which we wanted to bypass in the first place as we upload everything to Gdrive.
The chrome console throws those:
Dropping a single file that is 50mb in size doesn’t cause that “file too large error” and our file is properly processed, as expected. So the error appears to be happening with multiple files and one file larger than a file limit of 4MB (I am not sure where this is set).
Thanks for any help on this. I think it is related to the last update of Discourse itself.