Forum Widgets
Latest Discussions
How to generate a direct download link from the shared OneDrive link
Dear Experts and Supporters I'm a developer working on an issue related to downloading files from OneDrive. Everything was running fine until a few days ago when I reopened my app Here are my lines // shared OneDrive link example // https://1drv.ms/u/s!Atj71Lw5QEdsrQnTRHMj-fjGc49N?e=hOB5gO if (string.IsNullOrWhiteSpace(sharingURL)) return string.Empty; var base64Value = Convert.ToBase64String(Encoding.UTF8.GetBytes(sharingURL)); var encodedUrl = "u!" + base64Value.TrimEnd('=').Replace('/', '_').Replace('+', '-'); var directlyUrl = $"https://api.onedrive.com/v1.0/shares/{encodedUrl}/root/content"; And now when I cannot download from OneDrive, I have debugged and realized that there was a 401 Unauthorized exception But the file has been shared for Everyone with Edit permissions. I thought Microsoft had changed something about the shared link recently and the current way to get the direct download link as it is now is not possible. The shared link I see it's longer than before and different in format (no s!, no ?e=) So please kindly help me to solve this case. Thanks in advance! Henry Tien (email address removed for privacy reasons)tienitDec 05, 2024Copper Contributor1.8KViews1like6CommentsFile handler configuration does not update
Hi team, We recently had an integration with Microsoft file handler. During the deployment of the application, we encountered some issues, so we updated the file handler configuration via the manifest file. Some users who installed our application still see the old file handler configuration and are experiencing problems because of it. They want to either update it to the latest configuration or remove it completely so they can continue their work normally. We did try to guide them to reset the file handler cache as in: https://learn.microsoft.com/en-us/onedrive/developer/file-handlers/reset-cache?view=odsp-graph-online But seems like only some of them got the updated config, while the rest keep getting the old one, even after 1-2 weeks. Do you have any advice on how to completely resolve this issue?lumin_adminNov 29, 2024Copper Contributor46Views0likes0CommentsHow to Migrate Files from Dropbox to OneDrive While Maintaining Folder Structure
I have a corporate Dropbox account where each folder is named after a specific deal from my database. Inside each deal folder, there are subfolders representing the different stages of the deal as it progresses through the database. Recently, I set up a Microsoft 365 business account and recreated the same folder structure in OneDrive. This means I have the deal folders with their corresponding names, and within each deal folder, I’ve already created the stage-based subfolders. What I want to achieve is to migrate all the files from Dropbox to their respective folders in OneDrive. Example: In Dropbox, I have a folder named "Company1" that contains subfolders like "Emails," "Attachments," and "Presentations." Each of these subfolders contains files. In OneDrive, I’ve already created the "Company1" folder with the same subfolders: "Emails," "Attachments," and "Presentations." I need to transfer the files from Dropbox so that files from "Emails" in Dropbox go into "Emails" in OneDrive under the "Company1" folder, and so on for the other subfolders. Request: I'm looking for the best method to perform this migration while ensuring that the folder structure and file placement remain intact. Is there a native method within Microsoft 365 to accomplish this, or do you know of any third-party applications that can handle this type of migration efficiently? Any advice or step-by-step guidance would be greatly appreciated!momejriNov 25, 2024Copper Contributor179Views0likes1CommentOnedrive Share Popup box
We have deployed the App Locker policy via Active Directory Group Policy and have whitelisted all OneDrive paths and applications as publishers. Everything seems to be working, except for the "Share" pop-up box, which remains empty. Please let me know which application and path need to whitelist for resolve this concern. Image Link for RefrancesachinametaNov 06, 2024Copper Contributor18Views0likes0CommentsOneDrive container cTag property stopped changing
Hi, According to the docs: DriveItem - OneDrive API - OneDrive dev center | Microsoft Learn "The cTag value is modified when content or metadata of any descendant of the folder is changed." I am using graph Api to monitor changes in one of my folders. Indeed this used to work as described but suddenly cTag property remains constant. It will not respond to changes in sub folder files, adding files, deleting files or modifying fild in sub folders no longer causes the parent folder cTag to change. Thanks, GarygaryharpazNov 04, 2024Microsoft37Views0likes0CommentsOneDrive taking up space on C drive
Hi My OneDrive is taking up a lot of space on my C drive. I thought OneDrive was in the Cloud. Did I set it up wrong? Any tips or ideas on how to save space on my C drive when I am using OneDrive? Thanks!RedStudio185Nov 01, 2024Copper Contributor74Views0likes1CommentDisable download but enable printing for excel files
Is it possible to create a permission level that prevents guest users from downloading Excel files while also allowing them to print? I want guest users to be able to print reports from a shared Excel file, but I don't want them to be able to download the file to their devices.DakotaCoffeyOct 26, 2024Copper Contributor209Views2likes4CommentsUrl encoded folder names not decoded on server end
When using the OneDrive API I am url encoding the file names so for example a file with a plus or hash symbol would get encoded the the percent symbol escape sequence. This works correctly for files and they are created on OneDrive with the correct characters. When I create a folder this does not work correctly. I encode the name in the same way but when the folder is created on OneDrive it still contains the percent symbol so it seems not to be decoding server side. Does anyone know how to fix this? ThanksSolvedandrewc105Oct 18, 2024Copper Contributor170Views0likes2CommentsUpload file to OneDrive folder via php /which product do I / my customer need?
Hi, I'm totally new to this topic. I'm about to develop an app (Backend:PHP, Frontend:JS) which should be able to push files (generated in php on my server) to an OneDrive Folder of my customer. I am stuck at which product do I (for developing) and later my customer need for that. I think I need the "client credentials flow", which MS product/account is needed for that? Is an onedrive account enough? Do I/my customer need an additional azure account to register the app? Thanks for helpcatcher15Sep 18, 2024Copper Contributor169Views0likes0CommentsNeed to Recover Deleted Files from Local OneDrive Folder on Linux
I mistakenly synced my local OneDrive folder to the remote OneDrive using rclone, intending to update the remote with my local files. However, the sync went the wrong way, and now my local files are gone. Unfortunately, there’s nothing in the remote OneDrive Recycle Bin because all the files were originally on my local machine. I’m working on a Linux system and need to recover the deleted files from my local OneDrive folder. Is there a way to recover these files from the local Recycle Bin or any other method to restore them? Any advice or tools recommended for file recovery on Linux would be greatly appreciated! Thank you!
Resources
Tags
- onedrive193 Topics
- developer85 Topics
- APIs70 Topics
- files48 Topics
- Mobile20 Topics
- php2 Topics
- powershell2 Topics
- excel2 Topics
- SharePoint2 Topics
- Azure AD2 Topics