cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Known issues updated. Learn more

Help us improve our online support experience by taking our short survey!

default

no

Highlighted

Share links don't work on Android

For a while now, I've been sharing Dropbox documents in PDF format via email. Once in a while people tell me they "can't open the links." I always just assumed they didn't know what they were doing, but today I happened to test one of these links on an Android phone.

In the Gmail app on Android, clicking on a Dropbox link in this format:

https://www.dropbox.com/s/o8fpocz6tykra0o/20190204.pdf?dl=0

gives the error,

Cannot display PDF (20190204.pdf is of invalid format)

Anyone know how to get this to work on Android?

9 Replies

Re: Share links don't work on Android

Dropboxer
Hi there, @aprilafternoon
 
As a first step, could you please send me a screenshot of the error message you’re seeing (excluding personal info)? You can do this by selecting one of the following options:
Attach image.png

Thanks in advance!




Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below. 
White check mark Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.
Arrows Counter Clock Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Reply
Loading...

Re: Share links don't work on Android

Absolutely! Here you go.

Screenshot_20190201-131711.png

Reply
Loading...

Re: Share links don't work on Android

Dropboxer

Thanks for the screenshot, @aprilafternoon!

Hmm. thinking face The first thought that comes to mind is that the device doesn't have the relevant third party app to support the file in question so as to preview. 

However, I just wanted to ask, if you change the shared link's dl=0 into dl=1 (so as to force the file to download), are you then able to preview the file directly from your mobile phone by any chance? 

Let me know what you find!




Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below. 
White check mark Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.
Arrows Counter Clock Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Reply
Loading...

Re: Share links don't work on Android

I actually did try the dl=1 argument before I wrote this post! It makes no difference. Shouldn't the links open in the browser instead of trying to download the file?

Reply
Loading...

Re: Share links don't work on Android

Dropboxer
Thanks for trying this out for me, @aprilafternoon
 
Could you please try manually copy-pasting the shared link you have into a browser and see if that does the trick?
 
Let me know of any updates! 



Lusil
Community Moderator @ Dropbox
https://dropbox.com/support


Heart Did this post help you? If so, please give it a Like below. 
White check mark Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.
Arrows Counter Clock Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Reply
Loading...

Re: Share links don't work on Android

Hi @aprilafternoon,

The message is absolutely normal. The link point to JPEG file, erroneous renamed to .pdf. Of cource, android try to redirect to activity serving PDF, but the same activity seems doesn't know anything about JPEG. Check Your file format and/or set apropriate name extension. upside-down face

Reply
Loading...

Re: Share links don't work on Android

Unfortunately, that's not the case... the file in question is a valid PDF file and I can view it properly from iOS devices... just not Android. winking face

Reply
Loading...

Re: Share links don't work on Android

Hi @aprilafternoon,

As response to link Your posted initialy (https://www.dropbox.com/s/o8fpocz6tykra0o/20190204.pdf?dl=0) in part of the content (no to direct link) headers reported are:

accept-ranges: bytes
cache-control: public, max-age=31536000, no-transform
content-disposition: inline; filename="AA-iJSzD.jpe…ilename*=UTF-8''AA-iJSzD.jpeg
content-length: 232494
content-security-policy: referrer no-referrer
content-type: image/jpeg
date: Thu, 07 Feb 2019 01:25:27 GMT
referrer-policy: no-referrer
server: nginx
timing-allow-origin: *
vary: Origin
x-content-type-options: nosniff
x-dropbox-request-id: a80463e96954cc0b61e152b987784782
X-Firefox-Spdy: h2
x-robots-tag: noindex, nofollow, noimageindex
x-server-response-time: 171

all together (at least, when I clicked the link provided). Note especially the line:

content-type: image/jpeg

I will left this byself without comments.

Something more: Even on a same OS different activities can have different capabilities (What to say on different devices and/or OS-es). So, some activities can serve more types, others - no. That's it.

Reply
Loading...

Re: Share links don't work on Android

Of course, this could be bad redirection to https://uce90e38fa32e1b7b14345c2a3a2.previews.dropboxusercontent.com/p/thumb/AAULjtCnhlyMjiewZ4Hm5Jr...

If so, I can't say anything more.

Reply
Loading...
Error Messages

Have a question? Our Dropbox Community is here to help!

Post your question or search for an answer below.


Learn more about using the Community by reading our Community Guidelines.

Share links don't work on Android
More about this post
182 Views
9 Replies
0 Likes
Who's talking
Top contributors to this post