cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Instructions for a simple link on a webpage?

Instructions for a simple link on a webpage?

Msadr
Explorer | Level 4

All I want to do is hyperlink from a webpage to a shared drobox folder.  Is this impossible?  No matter how I format the link, I get "Dropbox refuses to connect".  I created an app and added that domain, still refuses to connect.  If I paste the link into a browser window, it works.

This seems like such a simple thing.  Does anyone have instructions anywhere on how to connect from a secure website to a specific dropbox folder?  I don't need any functionality at all.  I don't even need to display the contents anywhere.  I just want to direct the user from the webpage to dropbox.

20 Replies 20

Greg-DB
Dropbox Staff

Based on your description, such as creating the app and registering the domain, it sounds like you've tried to set up the Dropbox Embedder. The Dropbox Embedder is a way of displaying content from a Dropbox shared link directly on a third party site.

 

You mentioned that you don't actually want to display the contents though, so you don't need to use the Embedder. You can use standard HTML functionality to link to Dropbox web pages, just like one might do with other URLs.

 

We can't really offer support for HTML itself, but just for example, you could make an anchor element for a hyperlink like this:

 

<a href="https://www.dropbox.com/">Link to Dropbox</a>

 

You can replace https://www.dropbox.com/ with your full desired URL.

Msadr
Explorer | Level 4

Thanks but this is exactly what I did.  When I click on it, I only get the message "Dropbox refuses to connect".  What must I do to the shared folder link to make it clickable from the webpage?  Pasting the link into the browser works.  Clicking the link from the webpage does not.  I feel stupid that I can't get a hyperlink to work!  There must be some parameter that I need in the URL?

Здравко
Legendary | Level 20

@Msadr wrote:

... There must be some parameter that I need in the URL?


Hi @Msadr,

No, you only need to keep all URL params as they are - just don't change nor remove something. If you have some example page that doesn't work, it would be more informative.

Good luck.

Greg-DB
Dropbox Staff

@Msadr Здравко is correct; you do not need to add anything to make a standard hyperlink work. From your description though, it sounds like you may still be using some Embedder or iframe functionality. Make sure you only have the standard anchor element if that's the only thing you want. Otherwise, feel free to show what you have that isn't working as expected.

Msadr
Explorer | Level 4

Thanks, that gave me a hint.  The website I'm working with defaults the link target to the frame.  All I had to do was add target = "_blank" and the hyperlink works now.

barbarartist
New member | Level 2

Hey could one of you share a sample complete link using the solution Msadr came up with? I am trying to do the same things at my website. It is on a password accessible page and I want to provide a link to the drop box file that has photos of the project. I too created a link to the dropbox file and added it to my website (using the standard method suggested by Gre_DB above). But instead of linking to the dropbox file of  images, I am getting a 404 Not Found. Thanks!

Здравко
Legendary | Level 20

@barbarartist wrote:

... But instead of linking to the dropbox file of  images, I am getting a 404 Not Found. ...


Hi @barbarartist,

There is no such thing like "file of images"! There could be a link to image file or link to folder of images files.

Anyway... your issue is something completely different! On OP, the issue is impossible embedding of a Dropbox frame (or most of them at least - excluding some like targeting Dropbox Embedder). In your case the link seems broken - you have damaged it or inactivate it or maybe pointed file has been removed. Fix your link; adding anything else wouldn't change anything. If you can point something that doesn't work (as example), it will clarify the things.

barbarartist
New member | Level 2

I copied the link at my dropbox for a collection of images called 'Unlocking Desire Image Collection'. I have shared this link with press people so they can choose images for any articles they write, and have had no problem. Here is an example of a link at my website:

 

May 2023 Unlocking Desire was announced in Variety at <a href=https://variety.com/2023/film/global/barbara-neri-blanche-dubois-lgbtqia-unlocking-desire-1235622714...>the 2023 Cannes Film Festival </a>.

 

So I did the same think with the dropbox link I copied on my dropbox. It won't work. It goes to a 404 Not Found page. 

Even though this link works perfectly at my website I am getting this message as I try to send this to you:

Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.

Здравко
Legendary | Level 20

@barbarartist, Since you don't want to show me nonworking example I cannot say much more.

About the message for wrong formatting (I suppose on your forum post), just don't copy formatted text, but plain text only and you won't have any issues (clear the formatting when needed - seems forum imperfection). This message has nothing to do with your issue though.

Need more support?