Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Saket S.'s avatar
Saket S.
New member | Level 1
10 years ago

Android API File Upload

We are working to developing an android application for physical photo printing. I would like to leverage Dropbox to act as our file repository. 

Using dropbox core api's( for android ), is it possible to upload selected photos from users phones to a shared folder on dropbox? The photos uploads will happen on new folders( name can be order number ) which are created on the shared dropbox folder. 

Can you please indicate if this can be achieved via android application in dropbox? If yes, can you please point api's which can be looked at for this purpose? 

 

Thanks

 

 

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    The Dropbox Core API can be used to upload files to shared folders just like any other folders. Just supply the path of the shared folder like you would any other. Once files are uploaded to shared folders, they'll be synced to other members normally.

    Note that the Dropbox API doesn't currently offer a way to share folders though, so the user would have to do that themselves, e.g., via the Dropbox web site.

  • Saket S.'s avatar
    Saket S.
    New member | Level 1
    10 years ago

    Just to reconfirm please consider below is the scenario:

    (1) I create a Dropbox shared folder on my Dropbox account and create a Dropbox app (Dropbox core api). 

    (2) Now using Dropbox api's for Android, we should be able to develop a mechanism via which users( people who have downloaded my android application) can upload their selected photos to my Dropbox shared folder( even if the users do not have Dropbox accounts or Dropbox app on their phones). 

    If above is possible using Dropbox android api's,  can you please help us in getting started by pointing to api's which we should look at ? 

    Thanks

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Thanks for the additional details. It sounds like you want to have all instances of your app connect to a single Dropbox account. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.

    However if you did want to go this route, instead of kicking off the authorization flow, you would manually use an existing access token for your app, using the Android Core SDK. (Just be careful not to revoke it, e.g. via https://www.dropbox.com/account/security .) 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

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!