Null response creating file using Google Drive .NET API

前端 未结 4 1583
慢半拍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:33

    Have a look at what request.Upload() returns. For me when I was having this issue it returned:

    Insufficient Permission Errors [Message[Insufficient Permission] Location[ - ]

    I changed my scope from DriveService.Scope.DriveReadonly to DriveService.Scope.Drive and I was in business.

提交回复
热议问题