• Alex Pooley's avatar
    Ensure upload content matches filename extensions · edbdec94
    Alex Pooley authored
    Handle when extension is missing
    Handle ambiguous file type checks
    - Content of text files often don't define their type.
    - A text file may be missing a file extension.
    - We may encounter a file with no extension that we can't magically
    type.
    Optionally check integrity of specific mime types
    Ensure upload integrity by file extension
    Apply integrity check to AvatarUploader and FaviconUploader
    edbdec94