You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've uploaded a file and immediately checked if the file is uploaded or not using
let path = "/test.txt"
client.files.getMetadata(path: path).response(completionHandler: { response, error in
// It actually responded the file exists
then I called the
client.sharing.createSharedLinkWithSettings(path: path) { response, error in
// it throws error SwiftyDropbox.CallError<SwiftyDropbox.Sharing.CreateSharedLinkWithSettingsError> error 4
}
}
I've tried different ways of path expression in createSharedLinkWithSettings
/Apps/MyApp/test.txt
/MyApp/test.txt
/test.txt
The text was updated successfully, but these errors were encountered:
You shouldn't change the format of the path for the two different calls; you should use the same value.
There are some errors that can occur for createSharedLinkWithSettings that wouldn't occur for getMetadata though, but the output you shared doesn't look like the format of the error output we'd expect. There should be a more detailed error message. Is that all of the output you're getting? Can you clarify how you're accessing that error information? Can you try printing that error object, if you aren't already?
Error: (SwiftyDropbox.CallError<SwiftyDropbox.Sharing.CreateSharedLinkWithSettingsError> error 4.)
I've uploaded a file and immediately checked if the file is uploaded or not using
let path = "/test.txt"
I've tried different ways of path expression in createSharedLinkWithSettings
/Apps/MyApp/test.txt
/MyApp/test.txt
/test.txt
The text was updated successfully, but these errors were encountered: