Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
How i can upload image usign objective c. I am using APIV2.
And i implemted it which display me an error. Test 1 root folder here. I want to image uplaod in this folder
NSData *fileData = [@"water.jpg" dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:NO]; [[[client.filesRoutes uploadData:@"/Test1/" inputData:fileData] setResponseBlock:^(DBFILESFileMetadata *result, DBFILESUploadError *routeError, DBRequestError *networkError) { if (result) { NSLog(@"%@\n", result); } else { NSLog(@"%@\n%@\n", routeError, networkError); } }] setProgressBlock:^(int64_t bytesUploaded, int64_t totalBytesUploaded, int64_t totalBytesExpectedToUploaded) { NSLog(@"\n%lld\n%lld\n%lld\n", bytesUploaded, totalBytesUploaded, totalBytesExpectedToUploaded); }];
ERROR----
DropboxBadInputError[{ ErrorContent = "Error in call to API function \"files/upload\": path: invalid path: paths must not have a trailing \"/\""; RequestId = 9576332b860df94c12bcc13a28a6877a; StatusCode = 400; UserMessage = nil; }];
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!