Microsoft OneDrive Direct File Download URL Maker
<iframe src="https://onedrive.live.com/embed?cid=8F99649728BEB2F3&resid=8F99649728BEB2F3%211010&authkey=AFo8ZQ_-qj84DEQ" width="98" height="120" frameborder="0" scrolling="no"></iframe> see instructions below, if you don't know how. NOTE : For images there an extra step below.
https://onedrive.live.com/embed?cid=8F99649728BEB2F3&resid=8F99649728BEB2F3%211010&authkey=AFo8ZQ_-qj84DEQ and populate the text-box below. To proceed click "Get Download Link" button.
4. Now, Click on Get Download Link button.
Text-box will be highlighted so you can copy the full link. To copy, right-click and choose "Copy" or simply (ctrl-c) to copy link. Note: Entire URL is automatic selected for your convenience.
For Images, you get a direct url
- Right-click on image and select Embed. The Copy the URL to embed image now gives you direct download URL, but is super long.
So you do not need to do the above!
You can also remove everything after the ?
https://wyztwg.by.files.1drv.com/y4mucnXH4ZIfty_kXg9nYvgjHKJMw-XkCLfcBvI7ipNMNidsCjSMyNcw4cFyNlB0WKO9M-VNquASIbFp9DlTJPrjpqk2ex4GmzoVcA_2OOAp1G1ZiGK_U_UPjmfTj_hmtd41HascgLLyjTbEKJlDzXfFhyOXPngJ_ovCRPxL14pt1B0er3HaJvRxjkpru0z85Wiua9JhMP-BvbADeKnISGTqQ?width=1082&height=539&cropmode=none
https://wyztwg.by.files.1drv.com/y4mucnXH4ZIfty_kXg9nYvgjHKJMw-XkCLfcBvI7ipNMNidsCjSMyNcw4cFyNlB0WKO9M-VNquASIbFp9DlTJPrjpqk2ex4GmzoVcA_2OOAp1G1ZiGK_U_UPjmfTj_hmtd41HascgLLyjTbEKJlDzXfFhyOXPngJ_ovCRPxL14pt1B0er3HaJvRxjkpru0z85Wiua9JhMP-BvbADeKnISGTqQ?width=1082&height=539&cropmode=none
to
Using OneDrive as a CDN
Bonus : For images, read Using OneDrive as a Content Delivery Network (CDN) plausibility post.
any way we can help the same step for onedrive for business ?
ReplyDeletesimply add this command below-
Delete&download=1
at the end of shared link you've generated from onedrive business. It'll directly start downloading immediately
This does not work for me.
DeleteI believe that in business version download link is available directly. If not send me the link to convert.
ReplyDeleteHello, is there a "reverse" way to get the direct link from the "preview link" I get from a supplier?
ReplyDeleteUse this "shared link" ie https://1drv.ms/u/s!AsRPggdGwZFcjWhqmIY9K_tzLnQI?e=1o1vOQ
ReplyDeletethe expand it here (https://www.ipvoid.com/unshorten-url/) to get expanded URL ie
https://onedrive.live.com/redir?resid=5C91C14607824FC4!1768&authkey=!AGqYhj0r-3MudAg&e=1o1vOQ
Change redir? to download? in URL.
Done.
https://metadataconsulting.blogspot.com/2021/10/2021-Pro-Tip-Convert-OneDrive-Share-Link-to-Download-Link.html
DeleteIs there any way to make direct link for https://1drv.ms/u/ links?
ReplyDeleteKinda. You have to the MS shortened URL (https://1drv.ms/...) to expand it first. Using https://linkexpander.com/ for example. Take that URL and use in this page.
DeleteA lot of thanks! It's realy work fine! I'm don't check for images, but for excel file it work (checked).
ReplyDeleteDid you see Onedrive has changed it's embed coding? It now looks like this... https://1drv.ms/v/c/
ReplyDeleteThat is not the embed link, that is the share link
ReplyDeleteThe embed code has changed! Now looks like this:
ReplyDeletesrc="https://1drv.ms/u/c/fd21d22a9be551c7/IQMHzZkwgwd0R4ihUJCtZun5AVDadY3_LBrs9f1HXpo_jjI" width="98" height="120" frameborder="0" scrolling="no"
This has changed recently as direct downloads did work now they don't.
Your the 2nd person to bring this to my attention, and I see if I can hack the URL API to get a download - that link does expand to
Deletehttps://onedrive.live.com/redir?cid=fd21d22a9be551c7&resid=FD21D22A9BE551C7!s3099cd070783477488a15090ad66e9f9&embed=1&migratedtospo=true&redeem=aHR0cHM6Ly8xZHJ2Lm1zL3UvYy9mZDIxZDIyYTliZTU1MWM3L0lRTUh6Wmt3Z3dkMFI0aWhVSkN0WnVuNUFWRGFkWTNfTEJyczlmMUhYcG9fampJ
That item no longer exists however
DeleteThanks, i did move it to dropbox which works. Tried everything to get it to work, not sure if this is an error on onedrive or they've removed the option for direct downloads.
ReplyDeleteThe insertion system has changed, now the generated links look like this:
ReplyDeletesrc="https://1drv.ms/t/c/a73d8b13f9e57609/IQOaTZgA3Bu-Q6v8ogXIT9gJAQeMqe7yaGm296aY-Ze0E7A" width="98" height="120" frameborder="0" scrolling="no"
How could it be resolved?
Hi Otavio, if you use a URL Link Expander, you see that your link gets converted to https://onedrive.live.com/redir?cid=a73d8b13f9e57609&resid=A73D8B13F9E57609!s00984d9a1bdc43beabfca205c84fd809&ithint=file,txt&embed=1&migratedtospo=true&redeem=aHR0cHM6Ly8xZHJ2Lm1zL3QvYy9hNzNkOGIxM2Y5ZTU3NjA5L0lRT2FUWmdBM0J1LVE2djhvZ1hJVDlnSkFRZU1xZTd5YUdtMjk2YVktWmUwRTdB
Deleteand the Onedrive API for this links includes a redeem variable which has replaced authkey variable. Long story short, the new API prevents downloading. But there is a way around it, you get the download link from your browser - see update notice at top of page that links to https://metadataconsulting.blogspot.com/2024/06/OneDrive-Direct-Download-Link-Generator-for-2024-Breaking-API-Change.html
Hello! But the link from the browser is only valid for an hour. ((((
ReplyDeleteSucks ;( but MS got their act together with their upgraded API
Delete