prevent changing originalfile.mimetype from 'Directory'