protected function fileUpload($field, UploadedFile $file)
    {
        // Keep current file path to be able to delete it
        $tempField = '_'.$field;
        $this->$tempField = $this->$field;
        $this->$field = $file;
    }