Im not exactly sure I understand what your issue is, so let me try to explain the documentation page for Store application-specific data that appears to be unclear to you.
Uploading to the app data folder is done exactly the same as uploading to any other folder. With three differences.
First off when you authorize your user you will need to use the scope of DriveScopes.DRIVE_APPDATA
, This scope gives you access See, create, and delete its own configuration data in your Google Drive
. Which will mean that you can only edit data that your application created.
Second. When you upload the file. The file type must be .json. Configuration files are .json thats it.
Finally when you upload the file you set the parent directory to appDataFolder
.
var fileMetadata = new Google.Apis.Drive.v3.Data.File()
{
Name = "config.json",
Parents = new List<string>()
{
"appDataFolder"
}
};
That's it, that is the only difference with google drive api and uploading to appDataFolder. Any google drive api upload example can be used.