I would like to create an iOS app that saves some voice recordings into an app folder.
Then the iOS app should mail a link to the app folder to other users, who (using the same iOS app) should be able to listen to the recordings.
1) Using Swiftydropbox I cannot create a shared link to the app folder, "" is not supported, I can only obtain a link to a specific file like "/Recording1.m4a".
2) I cannot use Swiftydropbox with just such a link to download the file.
I would like to be able to pass a link to the app folder to Swiftydropbox and use it for downloading new recordings.
Would that be possible?
Solved! Go to Solution.
1. The Dropbox API doesn't allow an app with the app folder permission to create a shared link for its own app folder. Instead, you could make a subfolder, e.g., "/Recordings" (or whatever you'd like), and then get a shared link for that folder.
2. You can download the file from a shared link using the getSharedLinkFile method. Note that if you supply the link to a folder, you'll also need to know the sub-path of the specific file you want, and supply it to the "path" parameter..
Thank you for the quick reply.
1. Yes, I also thought of the idea of creating a dummy folder
What is the reason that the Dropbox API doesn't allow an app with the app folder permission to create a shared link for its own app folder?
2. But don't you still need to authenticate to use the getSharedLinkFile ?
In my app I would like record, login and upload a recording to Dropbox, then mail a shared link to the recording folder to my friend.
My friend would like to initialize Swiftydropbox with the shared link to my folder, not login but just enumerate the files in the folder including metadata rev, and then download any new/changed files using the otherwise very useful and well designed Swiftydropbox framework.
1. Great, thanks
2. Do you know if it is at all possible to obtain metadata (rev, clientModified, serverModified, etc.) for a shared link ?
Or to enumerate files in a shared folder ?
If not, then Dropbox might not be the platform for me.
The idea is, that my friend would occasionally check the link to my app folder to see if I have made any new recordings or modified one.
Using the powerful SwiftyDropbox at my friends side would have been extremely useful to me.
I hope you understand the functionality I'm seeking, and you will consider if it is something Dropbox will support
I get the feeling that my suggested scenario in some way violates the business model of Dropbox.
Why isn't it possible for my friend to see the files including metadata in my app folder without auth ?
thank you for your help and considerations.
I sincerely hope that the functionality I'm seeking is reasonable and that you will support it in the great SwiftyDropbox
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.Sound good? Let's get started.