Open porg opened 1 year ago
Your script:
/scl/fi/
raw=1
rlkey
argument. Then it should work again.Workaround for now:
dl=0
to raw=1
if you want.Huh, thanks for alerting me to this. It's strange that the API is returning the wrong links, I wonder if Dropbox is aware of this. Anyway, I can have a look.
rlkey
argument or does not include it (whatever way you construct it).Hmm. It's true that if you use the --query
argument to manipulate the returned query, it will just overwrite what was there before. I've pushed a code change to address that issue, which will be important now that the rlkey=
query argument will be required.
However, that may not be the problem in this particular case. For me, anyway, when I fetch links, I'm not getting the /scl
version, so there is no rlkey
. They work, though. I guess I can check if they are still wokring later, but if they aren't it seems like that's likely to be a Dropbox API issue, not anything with this script.
Thanks for the link to the Forum post, it points to this other post. Still a bit confused , TBH. That second post gives details about what types of links are being generated in the new vs old style, and when. Although it sounds like, at least as of a month ago, the rollout had been paused.
For me, anyway, when I fetch links, I'm not getting the /scl version, so there is no rlkey.
1) Old files and their links remained untouched.
Good points, thanks. I tried on a new file, but same old link style. So I may not be part of the rollout. LMK if you learn any more.
"Dry swimming" exercise:
rlkey=…
part gets/remains included in the URL, without you having the possibility to test it.Btw, I was one of the very early users of Dropbox, maybe a criteria which got me included.
From what I learned meanwhile I propose the following for get_dropbox_link.
From what's officially summarized here
Then on top of that apply the preference from #3.
https://www.dropbox.com/scl/fi/<identifier>/filename.png?rlkey=<content-key>&dl=0
https://www.dropbox.com/scl/fi/<identifier>/filename.png?rlkey=<content-key>&dl=1
wget <url>
→ Creates ugly filename (the last URL part as is).wget -content-dispositon <url>
→ Creates intended filename (passed via HTTP Content-Disposition header)https://www.dropbox.com/scl/fi/<identifier>/filename.png?rlkey=<content-key>&raw=1
https://dl.dropboxusercontent.com/scl/fi/
Aditionally I asked Dropbox to offer a rlkey
-free URL pattern for files located in the special location ~/Dropbox/Public/
which should continue to get read:everybody
as their default "hassle-free easygoing permission":
https://dropbox.com/scl/fi/<flag>/<identifier>/file-within-dropbox-public.png
where flag could be:
n
(normal) | dl
| raw
.
I very much hope they keep the possibility for a laissez fair link type.
OK, you can now amend the arguments without overwriting the rlkey
. I've also moved the APP_KEY
and ACCOUNT_TYPE
variables into the config file to simplify upgrading. This should be working now, but you'll have to let me know since I still can't create rlkey
links yet.
get_dropbox_link.py
Copy Dropbox Link
(official DropBox Finder extension)~/Dropbox/Public/
but seemingly everywhere, including also new files in existing directories and new files in new directories./s/
type links, especially the raw ones without redirection are seemingly the right one for embedding (fewer redirects!).https://www.dropbox.com/s/<identifier>/filename.png
https://www.dropbox.com/s/<identifier>/filename.png?&dl=1
https://dl.dropbox.com/s/<identifier>/filename.png
https://www.dropbox.com/s/<identifier>/filename.png?&raw=1
https://dl.dropboxusercontent.com/s/<identifier>/filename.png>
get_dropbox_link.py
anyhow interacts with the Dropbox API and hence always (should) return the most recent correct URL pattern for the supplied file.rlkey
argument which is mandatory for /scl/
type links in the --query
part when using the optional #3
/scl/
links hence could not test them/scl/
links, but by the time I had 310b32c installed, Dropbox rolled back /scl/
links (for my account at least)The other proposals raised in the comments above are now a standalone followup issue:
A link which I created just one week ago
https://www.dropbox.com/s/f7oy7f3ydh0kpyo/WordPress-Greenshift-v6-4-3-Breakpoint-Desktop-is-normal.png?raw=1
wget above-url
downloads that file well too.dropbox.com/s/*
as "legacy links".A link which I created today
https://www.dropbox.com/scl/fi/uvcdieskhipwbmernql8h/WordPress-Greenshift-Grid-item-order-New-UI.png?raw=1
wget above-url
downloads no PNG anymore.dropbox.com/scl/*
as "new links".Related News
https://www.dropboxforum.com/t5/Create-upload-and-share/Shared-Link-quot-scl-quot-to-quot-s-quot/td-p/689070
Proposal / Request
In face of those Dropbox API upgrade, could you please make the generated links to work as the old links?