Using magic number to detect file ext and mime type
Instead of relying on the file extension and header content type, now we make use of magic number to pull the file ext and mime type by inspecting it's content.
Instead of relying on the file extension and header content type, now we make use of magic number to pull the file ext and mime type by inspecting it's content.