We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
alekso89
7 months agoHelpful | Level 7
Get / Make Public and Temporary link for files
Hi everyone! I use the API https://content.dropboxapi.com/2/files/upload to upload files. After uploading, I get the file ID. I'm trying to figure it out, but it doesn't work out, how do I get publ...
alekso89
7 months agoHelpful | Level 7
Hi iNeil,
I'm not interested in downloading files yet. At the moment, I need to display an image without a viewer, directly. The parameter in the URL string "raw=1" will give an extra redirect, which is not exactly good for me.
I read that we can replace www.dropbox.com -> dl.dropboxusercontent.com and everything will work, I checked, everything works. In fact, "raw=1" and what I tried are the same thing, but there is no redirect in the second option.
iNeil
Dropbox Community Moderator
7 months agoHi alekso89,
You are correct that adding "raw=1" to the URL of a shared link will cause an HTTP redirect. The "raw=1" query parameter is used to bypass the preview page and allow your browser to directly render the file.
In relation to replacing www.dropbox.com with dl.dropboxusercontent.com, I’ve moved this forum post to the Create, Upload, and Share section to better assist with your inquiry with the shared link.
- alekso897 months agoHelpful | Level 7
I hope someone will answer me.
- Jay6 months ago
Dropbox Community Moderator
HI alekso89, in order to understand what you're requesting, please could you provide more information on what you're looking for, as you mentioned that everything works on your end after changing the URL?
Are you also using an API app to create these links, or are you going to be doing these changes manually?
- alekso896 months agoHelpful | Level 7
Hi Jay
I am using the create_shared_link_with_settings API to get the link. After receiving the link, I make substitutions in the URL as indicated in the screenshot. It is quite a working option to get a direct link, without a redirect.
Is this option acceptable for Dropbox?
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
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!