Added check for no file upload in beforeSave