1

I am developing a mobile app (in Flutter) that can read and write files in a specific folder in the user's Google Drive.

Users can also manually upload files to this folder and the app must have access to these files.

So far, I am using drive.file scope and did not manage to have access to the files that the user has uploaded manually.

Do I need to use drive scope?

Is there any way to use the driver picker in my app and grant full access to a folder?

I would prefer to use drive.file scope. (The difference is that 'drive.file' only gives you permission to files that your app has created or the user has explicitly shared with your app). But I don't know how to explicitly share a folder with my app.

csk
  • 188
  • 1
  • 10

1 Answers1

2

The https://www.googleapis.com/auth/drive.file scope allows you to give a per-file access to files which have been created or opened by your app. Therefore, if the files have been upload manually and not from your app, this scope won't give you the access you require.

As for sharing the files with your application, you might find useful the example listed here in order to prompt a user to share the files wanted.

Reference

ale13
  • 5,679
  • 3
  • 10
  • 25