Fixed saving of file fields.