Forum Widgets
Latest Discussions
some account can't upload files to Onedrive.
Some previously created accounts cannot upload files to OneDrive, but newly created accounts can. The uploadurl for the old account is“ https://my.microsoftpersonalcontent.com/personal........”,while the upload address for new account is “https://api.onedrive.com/rup/........”,and I didn't send the Authorization header and bearer token when i issue the POST or PUT call. I only send it when I issue the GETcall.is anyone know why and how can I solve it?underwoodDec 18, 2024Copper Contributor14Views0likes0CommentsApp Folder is being named "Graph"
There is an issue where the App Folder is being named "Graph" instead of the intended Application Name for some users, specifically those uploading to "my.microsoftpersonalcontent.com." Scenario: 1 A user logs in to the application and OneDrive via OAuth. 2 The user uploads a file to OneDrive. Expected Outcome: The file should be uploaded to /apps/**MyApp**/SomeFile.txt Actual Outcome: The file is uploaded to /apps/**Graph**/SomeFile.txt The upload process utilizes the following special URL: OneDrive API: Get Special Folder https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_get_specialfolder?view=odsp-graph-online The request is made using: POST https://graph.microsoft.com/v1.0/me/drive/special/approot:/SomeFile.txt:/createUploadSession This returns a URL for posting the upload: https://my.microsoftpersonalcontent.com/personal/XXXXXXX/_api/v2.0/drive/items/YYYYYYYY/uploadSession?guid='XXXXX4-4YYYY-bCCCDDDDDDD'&overwrite=True&rename=False&dc=0&tempauth=d3f4f4f4f4f....DavidLilleyDec 13, 2024Copper Contributor12Views0likes0CommentsHow 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 Contributor2KViews1like6CommentsFile 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 Contributor56Views0likes0CommentsHow 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 Contributor190Views0likes1CommentOnedrive 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 Contributor19Views0likes0CommentsOneDrive 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, 2024Microsoft38Views0likes0CommentsOneDrive 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 Contributor78Views0likes1CommentDisable 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 Contributor216Views2likes4CommentsUrl 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 Contributor176Views0likes2Comments