https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44103
--- Comment #7 from Marcel de Rooy <[email protected]> --- Created attachment 211606 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211606&action=edit Bug 44103: Add check around JSON.parse in file-upload.js This is a least work-solution. Probably this needs to move to fetch API etc. Note that it was a bit hard to get to the exact file name of the failing upload when doing a multi file upload. Test plan: Check what your max request body is for Apache or your reverse proxy before Apache etc. (By default 100MB in Apache.) Upload a larger file via Tools/Upload in staff view. Verify that you receive an error message like: FILE_NAME: Something went wrong during the Ajax upload: An uploaded file was too large. Note that if you would upload multiple files including the larger one, you will see: FILE1,FILE2: <same message> Test another script using this js code: Go to tools/stage-marc-import.pl (via Cataloguing). Upload the same larger file. You see: Upload status: Denied. Note: This could surely be extended (but not here). Signed-off-by: Marcel de Rooy <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
