Board Thread:Support Requests - Getting Technical/@comment-45310000-20200418011510/@comment-27958705-20200418193135

Thedarkgreenmeme #9 Forcing that type in the title serves might serve a purpose written for some very ugly code that checks that file extension to see if it is one from a long list of image file types that MediaWiki presently supports, but you would be better served by checking the first half of the mime type. it does both: if you want to upload a png file, the file have to have png signature. so server will always know that .png image is a real png image, and not renamed jpg. that means the server can rely on the file extension, instead of reading the file on each operation.