Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
lightsage88
5 years agoExplorer | Level 4
DBX JS SDK via Access Token not working for multiple users
Hello,
I am trying to use the implementation discussed here so that anyone with the Access Token can upload files, etc. However, my team mates can not successfully upload files. Dropbox is bein...
Greg-DB
Dropbox Community Moderator
5 years agoThanks! So, if I understand correctly, it's the 'filesUpload' call that doesn't complete? For comparison, does the 'filesListFolder' call work successfully?
If so, how large is the file that they're trying to upload and how long are they waiting? If they're accidentally trying to upload a much larger file than intended, it may just be taking some time. Otherwise, if the call is actually not working, I would expect it to eventually timeout with some error.
Additionally, a bit more context on where/how this is running may be helpful. I understand this is running in a NodeJS back-end, but is that actually running on a server somewhere, the same for each of you, or are each of you running the code separately, e.g., on each of your own computers?
For reference, the 'filesUpload' method would make a connection to /2/files/upload on content.dropboxapi.com, whereas the 'filesListFolder' method would make a connection to /2/files/list_folder on api.dropboxapi.com. Might there be anything, such as a proxy, firewall, anti-virus, or other such software that may be interfering with the connection to content.dropboxapi.com?
(By the way, while it shouldn't cause a technical issue like this, access tokens aren't really meant to be shared. Each user is only supposed to have access to their own access token(s).)
lightsage88
5 years agoExplorer | Level 4
The files are small, images (jpgs, pngs), and pdfs, etc.
We are both running the back-end and front-end of our applications on individual machines. I'm aware that sharing the key maybe isn't "preferred" but I don't see how sharing one key in .env variables between two or three groups is a big deal. I'm less able to see why we can't use our credentials to the same effect. Only I can have the full access I'd like and it's frustrating.
- Greg-DB5 years ago
Dropbox Community Moderator
From a technical perspective, it should certainly be possible to use the same access token in multiple places like this.
So, to help narrow this down, can you confirm it's the 'filesUpload' call in particular that doesn't complete? Does the 'filesListFolder' call work or not?
Since the code is running in each individual machine, I suspect there's some environmental issue interfering with the connections. Can your team mates check if something on their machines is causing this, such as a proxy, firewall, anti-virus, or other such software?
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!