0
Ich möchte Videodatei von lokalen Verzeichnis zu DropBox hochladen. Ich hatte eine Instanz erstellen. Auch meine Videodatei ist nicht mehr als 3 MB.Hochladen von Videodatei auf Dropbox in Objective C
@property (nonatomic, strong) DBRestClient *restClient;
und dies ist mein Code (Nach dem Datenumwandlungs ich lokal speichern und es hochladen.):
NSData *data = [NSData dataWithContentsOfURL:self.videoURL]; //this is my local video URL path
NSString *file = [NSTemporaryDirectory() stringByAppendingPathComponent:@"upload.mov"];
[data writeToFile:file atomically:YES];
[self.restClient uploadFile:@"upload.mov" toPath:@"Dropbox/Path" withParentRev:nil fromPath:file];
ich diese Warnung erhalte:
[WARNING] DropboxSDK: error making request to /1/files_put/sandboxDropbox/Path/upload.mov - (400) Expected 'root' to be 'dropbox', 'sandbox', or 'auto', got u'sandboxDropbox'
sieht so aus, als ob Sie die Datei mit dem angehängten Pfad senden. Sie sollten die Datei nur im Format/yourFile senden. Fügen Sie keinen Pfad vor dem Dateinamen ein. –