Reputation: 29
This question is regarding using Google Drive API. How do we pass the location where the files that are getting inserted are stored? (like store files in a particular folder)? When I insert a file, it goes to the root. Instead I want to store it in a particular location. Any ideas would be welcome.
Upvotes: 0
Views: 423
Reputation: 22316
You need to set the ID of the parent folder into an array element of parents. See https://developers.google.com/drive/v2/reference/files#resource
Upvotes: 1