Use octoprint.server.http.bodysize hook to override upload size
Use octoprint.server.http.bodysize hook to override upload size

Otherwise uploads to flash endpoint will be limited to 100KB,
effectively preventing any hex file from uploading successfully.

Maximum upload size for the endpoint currently hardcoded to 512KB
(see comment), maybe adjust to chipsize or add as setting?

ErikHeidstra/OctoPrint-flashArduino,ErikHeidstra/OctoPrint-flashArduino,Leapfrog3DPrinters/OctoPrint-flashArduino,Booli/OctoPrint-flashArduino,Booli/OctoPrint-flashArduino,Leapfrog3DPrinters/OctoPrint-flashArduino