We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
datan3rd
8 years agoExplorer | Level 3
Download not able to find file when exists
Building an app using xcode and objective c. I have been able to successfully get my backup sqlite file to upload but when attempting to use a download I am getting an error saying the file could ...
- 8 years ago
I see, thanks for sharing the output. This error isn't actually reporting an issue with the remote path (indeed "/backups/mydatabase.sqlite" looks correct) but rather with the local path for the downloaded file.
What version number of the SDK do you have installed? There were some bugs like this previously, but they should be resolved in the latest versions. If you're not already using the latest version (currently v.3.9.2) please update and try again.
datan3rd
8 years agoExplorer | Level 3
Thanks for the reply Greg.
Right now when I upload I am getting the path_lower = /backups/mydatabase.sqlite and subsequently I am using the downloadUrl as /backups/mydatabase.sqlite
I have continuously been trying to tweak code to get it to work but that is where it is at right now and I am getting the following (slightly different from before but still not functioning):
DropboxClientError[{
NSError = "Error Domain=NSCocoaErrorDomain Code=4 \"\U201cCFNetworkDownload_4Fyux0.tmp\U201d couldn\U2019t be moved to \U201cDocuments\U201d because either the former doesn\U2019t exist, or the folder containing the latter doesn\U2019t exist.\" UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Containers/Data/Application/7EBD8463-4C04-4AA9-86C8-5D24280543F0/Library/Caches/com.apple.nsurlsessiond/Downloads/DataN3rd.mydatabase/CFNetworkDownload_4Fyux0.tmp, NSUserStringVariant=(\n Move\n), NSDestinationFilePath=/var/mobile/Containers/Data/Application/7EBD8463-4C04-4AA9-86C8-5D24280543F0/Documents/mydatabase.sqlite, NSFilePath=/private/var/mobile/Containers/Data/Application/7EBD8463-4C04-4AA9-86C8-5D24280543F0/Library/Caches/com.apple.nsurlsessiond/Downloads/DataN3rd.mydatabase/CFNetworkDownload_4Fyux0.tmp, NSUnderlyingError=0x28367dda0 {Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"}}";Greg-DB
Dropbox Community Moderator
8 years agoI see, thanks for sharing the output. This error isn't actually reporting an issue with the remote path (indeed "/backups/mydatabase.sqlite" looks correct) but rather with the local path for the downloaded file.
What version number of the SDK do you have installed? There were some bugs like this previously, but they should be resolved in the latest versions. If you're not already using the latest version (currently v.3.9.2) please update and try again.
- datan3rd8 years agoExplorer | Level 3
Greg. When I run pod update I can see I am on 3.0.15. How can I specify what version to update to?
- datan3rd8 years agoExplorer | Level 3
Ok. Found the issue witht the update. Pod file was specifying 8.0 not 9.0. Updated the SDK but now I am getting a build error on the download line:
No visible @interface for 'DBFILESUserAuthRoutes' declares the selector 'uploadData:mode:autorename:clientModified:mute:inputData:'
- Greg-DB8 years ago
Dropbox Community Moderator
The method definition for uploadData has changed slightly since the old version you were using. You can find the current definitions here, but I recommend using Xcode's autocomplete to fill it for you.
- datan3rd8 years agoExplorer | Level 3
How do I use xcodes autocomplete? I am not familiar with that.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!