Discussions
-
Internal Server Error 500 when sharing folder
When running my code I can share a folder one or two times but then I receive the Internal Server Error 500 afterwards. Creating the shared folder works: client.sharing.shareFolder(path: pathName).response { launch, error in switch launch { case .complete(let launchData): let id = launchData.sharedFolderID -> Code for…
-
createSharedLinkWithSettings: Use external link in iOS app
I am creating a sharing link using client.sharing.createSharedLinkWithSettings(path: "/MyTestPath").response { response, error in if let link = response { let linkURL = link.url // Send linkURL to be accessed through another DB account in another app } else { print("Error sharing:", error) } } I would like to open this…
-
createSharedLinkWithSettings -> sessionDeinitialized error
I am attempting to obtain the link to share a folder but I always receive a sessionDeinitialized error. Setup: struct DropboxManager { var client: DropboxClient { let client = DropboxClient(accessToken: "sl.myAccessToken") return client } func shareFolder() { client.sharing.createSharedLinkWithSettings(path:…
-
malformed_path error in Swift
I am attempting to upload a file in Swift. The issue I have is that when I name the file with a string that I define myself, it works. But when I extract the file from the URL the upload does not work. Here is my code: let filename = "testfile.pdf" // example that does not work: // url is .../something/testfile.pdf // let…