chore(file): use a hook to fix detected mimetype

Moves mimetype detection logic for Microsoft zipped formats into a plugin hook as to avoid code duplication in file upload actions