![]() |
|
Profile is larger than maximum size (MAX_FILE_SIZE) - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Support (/forumdisplay.php?fid=4) +--- Thread: Profile is larger than maximum size (MAX_FILE_SIZE) (/showthread.php?tid=7058) |
Profile is larger than maximum size (MAX_FILE_SIZE) - simbun - 11-11-2023 13:25 Hi Simon, I've just upgraded my OS and because I'm running it on a Pi it's easier just to install to a new SD card. Everything is fine, but on trying to import my MinimServer profile I'm met with the error message 'Selected file 'custom.profile' is larger than maximum size (MAX_FILE_SIZE)'. My profile is 2134 bytes. I've got around it by loading it partially (removing some of the lines from the profile) and pasting the remainder back, but it's a bit of a pain. Is there any reason for such a restriction? RE: Profile is larger than maximum size (MAX_FILE_SIZE) - simoncn - 11-11-2023 18:35 When you import a profile file, this file is loaded into memory by JavaScript code running in your web browser and sent to MinimServer as text in a form POST request. A size limit is needed in case the user accidentally selects a file with a size of several megabytes, which is likely to cause the browser and/or MinimServer to crash. The current size limit is 2000 bytes. My largest profile is 1634 bytes so I haven't seen this error myself. I agree that a limit of 2000 bytes is too low for users with complex profiles, so I will increase this limit to 5000 bytes in the next update and change the error message to say what the limit is. RE: Profile is larger than maximum size (MAX_FILE_SIZE) - simbun - 11-11-2023 19:03 (11-11-2023 18:35)simoncn Wrote: When you import a profile file, this file is loaded into memory by JavaScript code running in your web browser and sent to MinimServer as text in a form POST request. A size limit is needed in case the user accidentally selects a file with a size of several megabytes, which is likely to cause the browser and/or MinimServer to crash. I hadn't considered how it's being sent. The current size of my profile is mainly down to a few lengthy displayFomats including the comment tag that's building multple URLs, but I can't imagine ever reaching anywhere near 5000! Thanks as always for the excellent support. RE: Profile is larger than maximum size (MAX_FILE_SIZE) - simoncn - 13-11-2023 21:22 MinimServer update 245 (released today) supports importing a profile file with a length of up to 5000 bytes. RE: Profile is larger than maximum size (MAX_FILE_SIZE) - simbun - 14-11-2023 13:01 You have been busy! Works great. Thanks |