[BUGFIX] Update file type on mimetype change