cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

Shared file link not working programatically

Shared file link not working programatically

Dan R.23
New member | Level 1

 I am creating an android app that downloads a shared file though normal http, not using the dropbox api.  I am creating a shared link to the file manually, then I am using that link in my app.  However, I am not getting the file back. Instead I am getting some dropbox file.  Here is the beginning of what is in the file I get:

!DOCTYPE html><html lang="en" xmlns:fb="http://ogp.me/ns/fb#" xml:lang="en" class="media-mobile" xmlns="http://www.w3.org/1999/xhtml"><head><script nonce="y2kO2oszFg5

the http download I am using works correctly on several other files on the internet, but not for any of the publicly shared dropbox file links.

The file link does work if I past it into a browser.

Not sure why dropbox dosn't return this file?  I am trying to access it just like a browser would.

Thanks, Dan

 

2 Replies 2

Dan R.23
New member | Level 1

I figured it out.  the link url I was using had dl=0 at the end of it.  I had to change to dl=1.

cheers

Greg-DB
Dropbox Staff

Hi Dan, I'm glad to hear you sorted this out already. By default, these shared links do return preview pages, but you can modify them, as you found. You can find more information here:

https://www.dropbox.com/help/201

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Dan R.23 New member | Level 1
What do Dropbox user levels mean?