Kevin
Well-known member
If they're in the upload folder, they'll be copied to the root of your installation. But no add-on developer should leave those files in there. If they're in the zip but not in the upload folder then they'll be ignored.A question, files like "instructions.html" or "readme.txt" are leaved behind, right?
Chris,Everything in the zip file is extracted to the server so even if you had a no upload folder - that would be on the server too. There's no way around this as fundamentally, the entire contents of the zip file need to be extracted to the server.
However, only the contents of the "upload" folder are copied into the root of your XenForo installation.
With XF Arcade there is an optional .xml file that needs to be included for admins wanting to use MochiMedia games. We need to include in the zip file for admins to have available to them but there is no way your installer would be able to handle it because it needs to be in the site root folder. For that reason I like the idea that somebody suggested earlier about having a "no_upload" folder that is ignored during the copy routine. That way can still be in 'compliance' with your installer while having extra files that are optional for the site admin to manually FTP themselves.
I see that you also mentioned that you're using a staging folder for the upload prior to the copy; is it safe to assume that folder is getting cleared out after the files copies are done?
Regarding a 'readme.html' file, it would be excellent if that file was able to be viewed inline or launched to the browser as part of the installation process. As it is now with a readme.html file admins typically unzip the file on the local PC, read the instructions file, and then FTP to the server. With an automated upload process it eliminates the admin even knowing that there might be an instructions file in the zip making such a file totally useless unless there was some way for the admin to either be alerted to it or be able to view it during the automated install.