Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
dbagadia
7 years agoExplorer | Level 3
Can dropbox replace existing FTP process
Hello,
We are currently using FTP to share file with external vendor. The file is generated via scheduled batch job and placed in the FTP location for external vendor to download and process it fur...
Здравко
7 years agoLegendary | Level 20
Hi dbagadia,
There are number of scenarios You can choose from.
Most simple is, if You and the external party believe to each other so, the both of You can share the same account. In such a case You dont have to use any API. Just any device (desktop, laptop, phone, tablet...), where access to the shared files is need on (on both sides), can be installed Dropbox application and linked to the created Dropbox account. Then Your script could easily be corrected with just replacement the FTP transfer with copy/move to the Dropbox folder. Even more - actual work may be could be redirected to place inside the Dropbox directory, so even the copy/move wouldn't be needed. Depending on the network speed and data size, some time after last change inside Dropbox folder, the files will be available on opposite side, without any additional actions (scripts)!
Almost the same, but in case when You can't share same account, then every party should have own account and, as already Walter noted, some subfolder have to be shared. The files have to copied/moved/worked on in this shared folder. The rest is the same as above - without any additional actions (scripts)!
The next, little bit more complex case is when one of the external party (for some reason) is not suitable for them to have Dropbox account. In such a situation on Your side You can repeat the same setup as in first case. In addition You have to share the file with Dropbox link (again as Walter noted already). I am simplifying according that You noted that only one file have to be shared. So created Dropbox https link should be shared with the other party, embedded in script for downloading pointed file. The script could be curl based, for example.
I believe, if my assumption that only one file have to be shared is wrong, then You can easily extend the last scene to shared folder. :wink:
Hope this help to some extent.
dbagadia
7 years agoExplorer | Level 3
Hi,
Thanks for the reply. In either scenarios listed above, the file should be uploaded(downloaded) to(from) the shared folder without any manual intervention. While exploring 'Dropbox for HTTP Developers - Dropbox API V2', I found that there are below end-points to upload and download a file from a shared Dropbox folder.
https://content.dropboxapi.com/2/files/upload
https://content.dropboxapi.com/2/files/download
Please advise if there is any standard utility already created that consumes these APIs to Upload/Download a file to shared folder. I will try to create my own app that will Upload/Download a file to shared folder without any manual intervention.
Please let me know for any questions.
Regards,
Dipesh Bagadia
- Walter7 years ago
Dropbox Community Moderator
Thanks for getting back in touch with us Dipesh!
I've just moved your post to the relevant section of our Community so the right people get to it as soon as possible dbagadia.
If you have any additional questions in the meantime, don't hesitate to let us know.
- Здравко7 years agoLegendary | Level 20
Hi dbagadia,
:thinking: Using any endpoint from Dropbox API suppose driving in context of OAuth session. This in turn suppose access to a Dropbox account from both parties (either shared or 2 connected). Dropbox application is example for a utility which use the API and ready for use. In this context I can't see a reason (how to say) to "rediscover the hot water". :grin:
Using the API (either direct https access or througout SDKs) is meaningfull if You want to embed Dropbox cloud functionality in existing software product or build entierly new service on top of Dropbox. In the main post asked for something much simple which can be achieved with just few lines or even without any lines of code. Anyway, this is a option.
The choice is Yours! Have a great day. :wink:
- dbagadia7 years agoExplorer | Level 3
Hi,
Thanks for the reply. As I understand, by using Dropbox application I can automate the Upload/Download of the file to/from the dropbox shared location.
Please help me understand the below:
1) Can I invoke Dropbox application via command line and pass parameters like 1) User name 2) Password 3) Upload/Download 4) Local/Shared Dropbox path (the set of parameters that are passed to the Upload/Download API)
Regards,
Dipesh Bagadia
- Здравко7 years agoLegendary | Level 20
Hi dbagadia,
About the command line: Yes, You can, but I can't see any reason You should do that. But anyway, You can run the Dropbox daemon as You do to any other program. I will advise You to use the autorun functionality.
About the username/password: Dropbox is using OAuth. At account link time (during install), new session is setup and from that moment on You don't have to enter anymore Your username (email) and/or password.
For the rest: Seems You haven't read still the details how exactly Dropbox (and not only) works. I will try to summarise: Your account content is mirrored to a local folder (named Dropbox). Any operation related to copy/move to, save inside, or delete from the Dropbox directory, 'mirror's to equivalent operation targeted to Your Dropbox account content and, opposite - when something changed in Your Dropbox data - this change follows to equivalent change in the local Dropbox directory content. In such a way, You don't have to use any API to upload, download or anything else. Just do the regular file operations inside the Dropbox local directory (like any other directory). Dropbox sync sill take care to keep in sync all connected locations (depending data volumes and network speed, some delay will be introduced). That's it. :wink:
Hope now it's more clear.
About 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!