0

How do you automatically download a file from Dropbox, say a .txt or .pdf file, from the app folder (Dropbox) programmatically without having the user link their account and do it manually? Is this even possible? The goal is to eventually display the file in the app.

Edit: I would like to clarify that the file would NOT be the user's. I am just trying to get my OWN file from the app's folder which is located under the developer's Dropbox AKA me.

Edit 2: I will be updating this file, which is why I'm storing it remotely on Dropbox. (to avoid having to repeatedly update the whole app) The purpose is to simply use my Dropbox as a database to retrieve this file from.

7
  • From a security point of view, there better not be a way to do this.
    – lciamp
    Commented Jan 5, 2016 at 3:33
  • I'm not suggesting downloading a file from the user's Dropbox. That would not be okay at all. The file would be from the app's Dropbox folder. (A folder under the account of the developer AKA me)
    – Coder235
    Commented Jan 5, 2016 at 3:40
  • So, you want people to use your app, that gets a file from your drop box? Im guessing you would be updating that file and using it kinda like you would a database?
    – lciamp
    Commented Jan 5, 2016 at 3:47
  • Pretty much. I guess I should add that to my post as well. Sorry for the confusion.
    – Coder235
    Commented Jan 5, 2016 at 3:49
  • It would think it's possible, I could be wrong. I don't know the dropbox API, but you could just store your username/password and whatever else you need to login to dropbox, in your program in a NSArray or an object if you wanna be fancy. Then just use that when you want to get the file. I can't imagine storing it in the app being safe tho.
    – lciamp
    Commented Jan 5, 2016 at 3:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.