Embed
2 TopicsOneDrive Direct Download Link
Hi all, My Problem and Question This question pertains to OneDrive for personal use. Microsoft recently made a change to the link format from the embed feature and made my direct download links obsolete. I would retrieve these links from the embed feature in OneDrive and the links looked like what's shown below. The link would directly serve the file to whomever accessed it without them ever having to interact with OneDrive. With the changes Microsoft recently made to OneDrive, is there a new way of getting links that have this functionality? Old link format (no longer works): https://onedrive.live.com/download?resid=XXXXXXXXXXX&authkey=XXXXXXXXXXX My Own Digging I've scoured several forums unable to find any solutions. I have found a temporary solution; however, the links generated via this method only have temporary authentication, so they expire after a day. Perhaps it could be a real solution if I could figure out how to get a permanent auth token for a personal OneDrive file. I'm retrieving the link from the GET request when clicking the download button on a file from a publicly shared link. Link format: https://my.microsoftpersonalcontent.com/personal/{resid}/_layouts/15/download.aspx?UniqueId=XXXXXXXXXXXXX&Translate=false&tempauth=XXXXXXXXXXXXXXXX&ApiVersion=2.0 Thank you to anyone that has input!9KViews1like6CommentsAudio file embeds not working
I have a site and a few audio files in my OneDrive account that I want to embed in said site using the HTML `<audio>` tag. I'm following https://stackoverflow.com/a/65415373's instructions and it works fine in my personal OneDrive account, which generates embed codes in the following format: <iframe src="https://onedrive.live.com/embed?resid=XXXXXXXX&authkey=YYYYYYYYYY" width="98" height="120" frameborder="0" scrolling="no"></iframe> (note the URL domain: https://onedrive.live.com) However, in my client's OneDrive account, embeds are generated using a shortened URL domain, like this: <iframe src="https://1drv.ms/u/s!XXXXXXXXXXXXXXX?embed=1" width="98" height="120" frameborder="0" scrolling="no"></iframe> Naturally, this URL format breaks embedding audio and I don't know how to circumvent this. I tried changing "embed=1" with "download=1" but it didn't work out. How can I make these "shortened" URLs work with the audio tag? Perhaps there's a way to disable URL shortening for embeds?? Thanks in advance541Views0likes0Comments