I was using this example to upload files to dropbox:
https://github.com/geersch/DropboxRESTApi/blob/master/src/part-5/README.md
Which is:
public FileSystemInfo UploadFile(string root, string path, string file)
{
//...
}
The method has 3 parameters:
root: The root relative to which the path is specified. Valid values are sandbox and dropbox.
path: The path to the file you want to upload.
file: Absolute path to the local file you want to uploadCall this method as follows:
var file = api.UploadFile("dropbox", "photo.jpg", @"C:\Pictures\photo.jpg");
Dropbox API says exactly the same as the example:
So no mentioning of "parent folder"..
How can I upload files under a specific folder instead of the root?
cant you just do
var file = api.UploadFile("dropbox", @"myfolder\photo.jpg", @"C:\Pictures\photo.jpg");