Learn how to make the most out of the Dropbox Community here 💙.
Learn how to make the most out of the Dropbox Community here 💙.
Thanks! That's helpful.
In version 3.0.0 of the API v2 Objective-C SDK, "progress" was renamed. You should replace "progress" in your code with "setProgressBlock".
Thank you for your support.
The full error message is:
No visible @interface for 'DBUploadTask<DBFILESFileMetadata *,DBDILESUploadError *>' declares the selector 'progress'
The code used is:
- (void)dbUploadFileWithPath:(NSString *)dbPath withData:(NSData *)dbData { [[[_client.filesRoutes uploadData:dbPath inputData:dbData] setResponseBlock:^(DBFILESFileMetadata *result, DBFILESUploadError *routeError, DBRequestError *error) { if (result) { NSLog(@"%@\n", result); } else { NSLog(@"%@\n%@\n", routeError, error); } }] progress:^(int64_t bytesUploaded, int64_t totalBytesUploaded, int64_t totalBytesExpectedToUploaded) { NSLog(@"\n%lld\n%lld\n%lld\n", bytesUploaded, totalBytesUploaded, totalBytesExpectedToUploaded); }]; }
Thanks! That's helpful.
In version 3.0.0 of the API v2 Objective-C SDK, "progress" was renamed. You should replace "progress" in your code with "setProgressBlock".
Problem solved! Thanks a lot!
If you need more help you can view your support options (expected response time for an email or 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!