SwiftyDropBox is the official Swift SDK for integrating with the Dropbox API v2.
Questions tagged [swiftydropbox]
52 questions
5
votes
2 answers
How to handle large files with NSData?
I have a very large video and I need to chunk this video to upload it to Dropbox.
I tried to use NSData, but because this file is too large, my application always crashes, so I don't know what I can do now.
For smaller videos, I used…

testa abalez
- 1,042
- 3
- 13
- 28
4
votes
2 answers
SwiftyDropbox list folders only
Im using SwiftyDropbox SDK in my iOS application, im trying to list folders only in my app then user can choose a folder (not a file).
in ViewController => viewDidLoad
override func viewDidLoad() {
super.viewDidLoad()
guard let…

Color Players
- 149
- 1
- 7
2
votes
1 answer
Why does OAuth redirect not work in iOS 13 but it does in iOS 12?
I'm developing my app which should interact with dropbox, download a file, read and write it and then upload it. The problem is that the app works fine in iOS 12 but doesn't work in iOS 13. I think the problem is here because the code is not…

Zeno Dalla Valle
- 957
- 5
- 16
2
votes
0 answers
SwiftyDropbox API Operation Failed Externally to Library
I am attempting to upload an image to dropbox through the swiftydropbox API but when I call the uploadFile method I get the following error:
2018-07-02 15:52:16.947075-0400 takePicBrianAdvent2[872:568330] [BoringSSL] Function…

cvrattos
- 51
- 1
- 4
2
votes
1 answer
Why is 'self' used outside of a class?
I'm following this tutorial on GitHub on how to implement SwiftyDropbox in an iOS app. There's a point where it tells me to add this code to my ViewController
import UIKit
import SwiftyDropbox
func myButtonInControllerPressed()
{
…

Theodore.K
- 384
- 2
- 7
- 21
2
votes
1 answer
NSURLErrorDomain Code -999 when call SwiftyDropbox method
I have incorporated the Dropbox API V2, with permission of "App Folder".
The call using curl succed:
curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header 'Authorization: Bearer vSBSoEs...............' \
--header 'Content-Type:…

mamcx
- 15,916
- 26
- 101
- 189
2
votes
0 answers
Compressing Large Assets From Dropbox
Currently I'm working on downloading all the image's provided within a user's selected folder. So this process consists of:
Requesting all the thumbnails of the images
Requesting all the original images
Take the original and create a retina…

Samuel Franz
- 21
- 1
1
vote
1 answer
I cannot upload an audio file to my dropbox using the package SwiftyDropbox
I'm new to the coding!!!
Here is my code! I tried to let the user recording then uploading the audio file to the dropbox. I have already applied for the Dropbox API and got the App Key!!
My version is Xcode 14.3
The question 1 is "should I add…

Vivi
- 11
- 2
1
vote
1 answer
swift, SwiftyDropbox API: How can I get the user account name as a string
I tried this, but can't get it to build and can't find example anywhere.
client = DropboxClientsManager.authorizedClient
let dropbox_account_name = client!.users.GetCurrentAccount().getAccountId()
BACKGROUND...
My Swift app uses DX API to connect…

Doug Null
- 7,989
- 15
- 69
- 148
1
vote
1 answer
How to add local package to Xcode Swift project?
I want to add SwiftyDropbox package locally to my Xcode Swift project so it builds fastest.
I added dependency to SwiftyDropbox github URL and it runs ok, but takes over a minute to build after Xcode clean (ie. realclean).
I'm following Apple's…

Doug Null
- 7,989
- 15
- 69
- 148
1
vote
1 answer
Swift: Downloading Images from DropBox
Here's the code I've tried so far:
client?.files.download(path: "/AlloyTest/\(imageName)").response { response, error in
if let response = response {
let responseMetadata = response.0
print(responseMetadata)
let fileContents…

Ufuk
- 19
- 3
1
vote
0 answers
SwiftyDropbox setup with Carthage
I'm following the steps to install SwiftyDropbox using Carthage. My Cartfile is:
# SwiftyDropbox
github "https://github.com/dropbox/SwiftyDropbox" ~> 5.1.0
When I run "carthage update --platform iOS" I get:
third_party (master) $ carthage update…

velo35
- 11
- 3
1
vote
2 answers
Swift 4 Project use Swift 3 libraries
I am trying to use SwiftyDropbox framework in a project which uses Swift 4.2, but SwiftyDropbox is still using Swift 3. How does one include libraries or frameworks using previous Swift versions?

Deepak Sharma
- 5,577
- 7
- 55
- 131
1
vote
1 answer
SwiftyDropbox with Alamofire issue
I have the following line in my Podfile:
pod 'Alamofire', '~> 4.7'
Problem is when I add the line 'pod SwiftyDropbox', there is an issue when I run pod update:
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod…

Deepak Sharma
- 5,577
- 7
- 55
- 131
1
vote
2 answers
How download file with SwiftyDropbox? Error with path
I'm trying to download a file with SwiftyDropbox but I have problemas with the path. I have a file in mi Dropbox "prueba.txt":
Dropbox file
And this is the code that I use to download in my app.
import UIKit
import SwiftyDropbox
let clientDB =…

sergio
- 21
- 3