Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

jpimbema's avatar
jpimbema
Explorer | Level 4
2 years ago

Clicking files in embedded Dropbox leads to registration screen instead of direct download

We have embedded Dropbox onto our website in an iframe: [Removed as per Community Guidelines]
We produce a Dropbox read only share link to include in the embed code.

For some folders we get a share link containing /scl/fo/ which leads to a registration splash screen whenever a website visitor clicks a file in the embedder. However we want to start a download instead of a registration...

The strange thing is that other folders for which we produce a read only share link contain /sh/ . When you click on a file in the embedder with this link in the code, the download starts without a registration splash screen.

 

Now, I've read that a link containing /scl/fo/ is an edit link. Why do some folders produce a link containing /scl/fo/ and others /sh/ while we explicitly ask for a read only share link?

 

We run a Dropbox Advanced plan.

24 Replies

Replies have been turned off for this discussion
  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    Greg-DB wrote:

    ..., so you'll need to create new shared links for the fixed behavior.


    Yes, but no!!! Now, with new link the behavior changes, but stays incorrect; now with new link to the same file https://www.dropbox.com/scl/fo/25bzgyfsnf7ewps37i25i/AD-38IrNkvYcv0eHaopJz6s/GOLF-P-WE-AU-BLACK/%231134_GOLF-P-WE-AU-BLACK.eps?rlkey=60509kpyry3hmb2mx00gjpo5h&dl=0:

    If I click "Back to files", it asks me log in! 🤷

    I generated the above link in the same way as previous one with folder pointing link: https://www.dropbox.com/scl/fo/25bzgyfsnf7ewps37i25i/ADMm0_m7MuQGroaOEsfGVRo?rlkey=60509kpyry3hmb2mx00gjpo5h&e=1&dl=0

    It doesn't matter dl=0, dl=1, or raw=1. 🤔 Something still goes wrong despite of no more 2 redirections. Redirection to the link root folder gets replaced by redirection to error HTML (page) in all cases.

    Is there some error on my side?

     

    PS: Dropbox doesn't even let to me access my own file! (even when I'm logged in) Before I was able to access my file at least.

    $ curl -X POST -u '*************:************' -H 'Content-Type: application/json' -d '{"path":"/GOLF-P-WE-AU-BLACK/#1134_GOLF-P-WE-AU-BLACK.eps","url":"https://www.dropbox.com/scl/fo/25bzgyfsnf7ewps37i25i/ADMm0_m7MuQGroaOEsfGVRo?rlkey=60509kpyry3hmb2mx00gjpo5h&dl=0"}' https://api.dropboxapi.com/2/sharing/get_shared_link_metadata | jq
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  2063  100  1882  100   181   1053    101  0:00:01  0:00:01 --:--:--  1154
    {
      ".tag": "file",
      "url": "https://www.dropbox.com/scl/fo/25bzgyfsnf7ewps37i25i/AD-38IrNkvYcv0eHaopJz6s/GOLF-P-WE-AU-BLACK/%231134_GOLF-P-WE-AU-BLACK.eps?rlkey=60509kpyry3hmb2mx00gjpo5h&dl=0",
    ...
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    Здравко That should be fixed now. Please let us know if you're still seeing any issues with that. Thanks!

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!