Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Post History
OK. This appears to be a variant of the known image issues. Specifically, it is relying on extension to determine image type, rather than doing an analysis after upload. However, it appears that So...
Answer
#1: Initial revision
OK. This appears to be a variant of the known image issues. Specifically, it is relying on extension to determine image type, rather than doing an analysis after upload. However, it appears that SomeOther sites do something very similar, so this is far from a uniquely Codidact problem. The problem is a bit of a tricky one. Limiting based on extension is a time-honored technique to help filter bad (or just useless) files. On the other hand, it is no *guarantee* that the files are what they say they are - e.g., an executable masquerading as an image. The solution to that problem is to a check after upload to make sure the content nominally matches the stated filetype. Until we get a far more sophisticated image upload process, I think this will stay "as is" - but others may be willing to tackle it, so we'll see.