Embed
4 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!8.6KViews1like6CommentsAudio 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 advance530Views0likes0CommentsI wanted to create an embed link for onedrive files in work account.
I referred the link. https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createlink?view=odsp-graph-online. But could not create a embed link programmatically. (Since it is a work account) Is there any other way to create an embed link through an programmatically?697Views0likes1CommentStable URI for OneDrive Excel Embedding
I have a website with an embedded iframe of an Excel spreadsheet through OneDrive's "Embed" option. The problem is that every time I update the file the URI changes (specifically the authkey and resid parameters) and it breaks the embed. Is there anyway to pin those variables to the file so that I can update it and not break the embed?798Views1like0Comments