recalculate mimetype for every file unless overridden