Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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?
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
Thanks,
/Lars
2. You can use getSharedLinkMetadata to get the metadata, but that also requires user auth, like getSharedLinkFile.
The API unfortunately doesn't offer a way enumerate the contents of a folder via a shared link for the folder.
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 ?
Hi Greg,
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
Thanks,
/Lars
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!