hi
> it only accepts .zips
yes exactly. you know you can only upload 1 file at a time, so this is the best option
> things inside the zip have to be inside a folder, an allowed root folder
no, things can be anywhere in the zip
if there is only 1 folder, we assume it is the “real” root of the archive. This is due to the behavior of some archive software which put everything in a root folder by default
> What does the categorization of the root folders do?
You mean the folder tree ?
This is useful when you use the installer service, which will download and paste the files in the existing folders, and it may create the folders if needed. It keeps the same tree. For example, if the zip file contains “binary/mods/ai/common_api/test.js” then test.js will be placed into the right folder.
It is also used to detect dependencies between elements. For example if the element called “common api” contains binary/mods/ai/common_api/*.*, then when another element is uploaded and contains the same folder and files, then there is a “dependence” with the “common api”. It does nothing to the zip is downloadable and which still contains the common api files, but it is visible in the element post. And also, if you use the installer service, it has 2 adventages
– it makes you download the original “common api”
– if you already have the original “common api” installed, it does not try to overwrite it
– when there is an update (a new version is uploaded), then you can update the original “common api” and the other element independently