the-moisrex / webpp

C++ web framework | web development can be done with C++ as well.
https://t.me/webpp
MIT License
134 stars 9 forks source link

Mime Types #376

Open the-moisrex opened 1 year ago

the-moisrex commented 1 year ago

Some file types have signatures (Magic bytes aka File Signature), we can use them to identify the type of a file regardless of the file extension.

This is an important issue to handle with care, because there are a range of exploits that can be written like this and be uploaded to the server through improper checking of the file.

the-moisrex commented 1 year ago