Hello @Friendica Developers I like to ask you about your opinion regarding the issue:
Currently, I am reworking the upload size limits description and usage for images on the Admin site. I encountered IMHO an inconsistency in the semantic of providing '0' and '-1' as a limit value:
Question: Which values should we use, and how should they be interpreted in the code base? For me, it would make sens to use "-1" in general for no limit and "0" for deactivated. But what would "0" then mean in the case of "image length"?
Any thoughts?
On the admin site for image upload limits it is stated that "setting 0 bytes for maxfilesize equals no limit", but I found that the case $maximagesize = 0 is not handled as INFINITY but a...GitHub