user1816974
user1816974

Reputation: 29

Google Drive API insert/retrieve files using Java

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

Answers (1)

pinoyyid
pinoyyid

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

Related Questions