Hi,
Thanks for the sample and guide to help us list the files in gdrive after successfully authenticating with user consent.
However, I tried to get some metadata information for the files I uploaded in my gdrive. All I am able to get Name and ID but not any metadata information as mentioned in Subject line.
I checked over internet and could not really what wrong I am doing as I am just calling the relevant properties.
"Console.WriteLine(file.Size);" where file is an instance of Google.Apis.Drive.v3.Data.File
Can you please advise.
Jay PankhaniyaPosted Oct 12, 2023, 12:55 PM
To access additional metadata information for files in Google Drive using the Google Drive API, you need to make sure that you request the necessary fields in your API request. By default, the API only provides basic fields like
NameandID. If you want to retrieve theSizefield, you need to specify it in your request.