Allowed File Uploads
NodeBB changed the way file uploads are being handled, and uses a file-extension whitelist in the next version.
Before Upgrading we need to make sure we are allow uploading the needed file types in the future...
File Extensions Needed:
If you see anything missing here, please reply to this Thread ASAP.
@RoiEX I think GIF should be there. It is kind of lame but, sadly, no good action images have affirmed themselves, so far. On this regard, I would add a better action image, if possible, but the various formats (like APNG or MNG or a few others) are all quite unpopular, unless I'm missing something happening very recently; so, up to you if you want to consider any one of them.
Not sure if it would be worthwhile to support anything vectorial, meaning SVG, as it has no direct use in TripleA, but it is always cool to have like a SVG baseImage that you can then scale as you wish, before rasterising; tho this would be a way to support animation, as well.
Also, what is your opinion on the matter of JPG vs JPEG, if it is relevant here? I'd go with JPG, but, for example, the smallMap has to be JPEG, not working as JPG. This last one is a very marginal detail.
Finally, I would take PDF into consideration; it is the standard if you want to upload the image of some map, then to go somewhere printing it out (sometimes people ask for being able to print out some maps).
@Cernel Adding those to the list...
Ah, and, of course, TXT, PROPERTIES and XML; not sure if those are automatically included.
Also, as per what you can do in the current Developer forum, of course you should be able to upload sounds and listen to them, directly (which you can currently do in the Sourceforge Forum), meaning WAV and MP3 (WAV are not supported anymore in the engine, but it is for the lossless source, as well as 126.96.36.199 and previous compatibility).
Another reason, I forgot to mention, why GIF is a must is that custom cursors are GIF only (afaik), in case anyone wants to share a custom cursor on the forum. Sadly, no developers have added PNG support for custom cursors; so, I think that is the only remaining item bogged down to GIF only support (thus only visibly pixilated cursors are possible, meh). Other things in the engine accept GIF, but I don't see much point, there, since you can rather use PNG.
Going back to the APNG or MNG diatribe, actually, APNG is an extension of PNG; so I guess that supporting PNG will allow to upload APNG, as well (not 100% sure). Instead, MNG is its own format. I've no clue what is prevalent, but, as a GIMP user and as per 2.8, MNG is natively supported, while APNG requires the addition of a custom plug-in, to be separately downloaded.
Basically, MNG is better, and more like it, but it is problematic to support, or anyways got close to zero support from browsers, after the first release, thus APNG was developed, that should be more easily supportable, as long as you already support PNG, but I believe both have scarce support, at the end, afaik (this is why the crappy GIF is still so popular for animated images on the web).
Side note, another way to have advanced animation would be ANI (that is related to WAV), that is normally used only for Windows animated cursors, afaik, tho (not suggesting to support this).
Nothing is automatically included, for safety reasons...
We don't want this forum to host malicious exe files etc.
Added those in...
btw. all that matter is the file extension... APGN has the same file extension as PNG and therefore it's treated the same...
@RoiEX could you have a look at the allowable file extensions on old war club when ya have a minute and update those as well?
@prastle I'm not even sure if there is a thing like a whitelist, probably not...
I upgraded the nodebb software to the latest version... the whitelist is now active...