We’re aware of an issue causing slower load times on the Dropbox Community forum. It should be resolved soon. Thanks for your patience! 

Forum Discussion

Rene P.'s avatar
Rene P.
New member | Level 1
11 years ago

Opening local file from Webpage/JavaScript

Hello.

I can open local DropBox files from my browser (I mean file is not downloaded but opened directly on disk).
But I fail to find a suitable DropIn API to repro the same for my (JavaScript) integration. Can someone point me to right direction please?

Thanks.

7 Replies

Replies have been turned off for this discussion
  • I think you're referring to the feature on dropbox.com that lets a user click an "open" button to open the file on their local computer instead of in the web browser.

    There's no API to replicate this. You can imagine why, for security purposes, we don't want other web pages to be able to trigger this behavior.

  • Rene P.'s avatar
    Rene P.
    New member | Level 1
    11 years ago

    Yes, I am referring to that feature.

    But... The open functionality works only for files in Dropbox folder, so in order to open it one must know its identity.
    All the Dropbox file privacy is built up on that identity, so it is not easily guessable according to Dropbox security standards.
    Dropbox could also force-show confirmation dialog in case of direct file opening.
    Assuming the file opening from dropbox.com webpage is safe, I could not find anything to flag up in quick STRIDE I ran.

    May be I missed some aspect, could you please enlighten me here? At least for curiosity.

    Thank you.

  • "All the Dropbox file privacy is built up on that identity, so it is not easily guessable according to Dropbox security standards."

    I'm not sure what identity you're referring to. The identity of a file in Dropbox is its path, and these are often easily guessable. Even an app that knows about my files in Dropbox certainly shouldn't be able to open them on my computer without my consent. (Imagine the case of a malicious app that writes a file with malware and then causes my computer to open that file.)

    We'll consider this idea (with a confirmation dialog) a feature request, but there are no immediate plans to add it.

  • Rene P.'s avatar
    Rene P.
    New member | Level 1
    11 years ago

    With the identity I was referring to a link to the file that people can use to share files, like

    https://.../1/view/kh8awq....
    Having a possibility to open such links directly on end users computer or even having this option through Chooser API would be excellent.
    Thank you for adding this to the wishlist and hope to see the feature soon to implement better integration with Dropbox.
    Best regards.

  • Erich J.'s avatar
    Erich J.
    New member | Level 1
    11 years ago

    I would really need this kind of functionality. If anything, one could limit it to confirmation dialogues or allow for specific extensions only (excluding .jar, .exe, bash files etc.).

  • Taavi S.'s avatar
    Taavi S.
    New member | Level 1
    11 years ago

    Exactly the same thing needed here.
    @Steve M: You said that it will be considered as a feature request. What has become of that? Is there any possibility that it would be implemented any time soon now? We would really need it ASAP.

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

    We're still tracking this as a feature request, but there are no current plans to implement this.

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!