cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

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

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

jpimbema
Explorer | Level 4

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 24

Greg-DB
Dropbox Staff

This issue is now fixed for new shared links. Please note that previous existing shared links will continue to display this behavior, so you'll need to create new shared links for the fixed behavior.

Здравко
Legendary | Level 20

@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/%231...:

image.png

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=60509kpyry3hmb2mx...

It doesn't matter dl=0, dl=1, or raw=1. :thinking_face: 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
Dropbox Staff

@Здравко Thanks for the new sample! I'm raising this with the team.

Greg-DB
Dropbox Staff

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

Здравко
Legendary | Level 20

Hi @Greg-DB,

Just checked and... now as seems it's working. :winking_face:🙋

Thank you.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?