Forum Discussion

Nora B.3's avatar
Nora B.3
New member | Level 1
10 years ago

Problems using the API in remote Web Server

I'm developing a web app using Dropbox API.

When I run Jboss server in my laptop, uploading a file to dropbox works fine. But when I run the server remotely, the uploadFile method doesn't recognise the path that I'm writing in my web app. It recognises only paths from the server's machine.

The same happens when I download a file. The downloaded file is stored in the remote server, not in the computer that runs the web app.

Is there any way to solve that?

1 Reply

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

    When running an app, the code will use the file system of the machine it's running on. In the case of a web app, that's the server it's running on, so when you deploy it to your remote server, it will use that server's filesystem, and not your computer's.

    If you want the web app to interact with files on the user's computer, where the browser is running, you'll need to develop a way for data to be sent between the browser and server. E.g., let the user upload files using a file input. That's outside the scope of Dropbox API support so I'm afraid I can't offer help on that though.

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!