Null response creating file using Google Drive .NET API

前端 未结 4 1623
慢半拍i
慢半拍i 2021-01-28 03:49

I am trying to upload a file onto my Drive using Google Drive .NET API v3. My code is below

static string[] Scopes = { DriveService.Scope.Drive,
                         


        
4条回答
  •  佛祖请我去吃肉
    2021-01-28 04:55

    Change static string[] Scopes = { DriveService.Scope.DriveReadonly }; to static string[] Scopes = { DriveService.Scope.Drive };.

    After changes, take a look into token.json file and check does it change its scope from DriveReadonly to Drive.

    If you are seeing DriveReadonly then delete the token.json file and run the application again.

提交回复
热议问题