files
52 TopicsFeedback (feature request to drag and select photos on IOS)
I am looking to provide feedback (feature request) for the OneDrive IOS application. The feature request is to have the ability to hold my finger down and drag it to multi-select photos quickly (when uploading photos to OneDrive from the phone). Currently, when uploading photos to OneDrive on the iphone, I have to individually tap on each photo icon I want to upload. When uploading hundreds of photos the process is very painful. I tried a work-around using the native IOS "Photos" app. This app allows you to multi-select by dragging your finger. after the photos are selected I can "share" to onedrive. However, for some reason, I can only do this for up to approximately 20-30 photos. If I try to share 100 photos for example, the onedrive app doesn't appear in the share selection menu.4.1KViews2likes3CommentsBase URL used for Multi Tenants
Hello, I want users to select files from their personal and company drive but it requires a base url which is used to authenticate the user into the drive but the https://github.com/OneDrive/samples/tree/master/samples/file-picking and the https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/?view=odsp-graph-online don't have any indication of where to get a dynamic base url or the base url to use for the multiple tenants. Right now it only works for users in my organisation but I need it for users. Edit: I am using the v8 file picker Thank you3.9KViews1like5CommentsYour OneDrive is about to be deleted Email - Anyone Help
Hi guys, I don't know if anyone that can help will ever see this post, I am not even sure if this is the right place to post this but I am so sad about my current situation that I have to write it down. I have had a Microsoft account for 23 years. I actually created this account when it was called hotmail. Years before microsoft bought it. When "SkyDrive" came along I thought it was great I uploaded back ups of my images and files from all my devices and for years I thought my files where safe with microsoft. Then SkyDrive changed to "OneDrive" I contiuned to keep my files in my microsoft account. Yesterday, I logged on to the one drive account.... I haven't accessed it for about a year or so but I just wanted to get some of my old pictures of my kids and think about the good old days. But my files.... are gone! 23 years... of memmories.... gone. After speaking to someone on the support chat I did a search in my email for "onedrive" and I found this email: Your Email address removed personal account is currently frozen because you are 36.4 GB over your storage limit of 30 GB. Your files are still there. However, your OneDrive will be deleted on or after 9/4/2021 5:51:48 AM unless you https://click.mail.onedrive.com/?qs=c3621e9bc5b95b4ee011052868c13588d4185ed316ce23e263d1a683018de244f73e6104e5c0f60ba274dbefd78f75c53a333384edd7361a or https://click.mail.onedrive.com/?qs=c3621e9bc5b95b4e9007862c60dbf590fa554e30aa79b73d0c8f4e3fb12e2d2cf7e279ffe210a5df9263880515f1a10760a6071207bfaab5 you don’t need. If your OneDrive is deleted, you won’t be able to retrieve any files you had previously saved in your account. I only saw this email yesterday, this is becuase even though I use this Microsoft Account to store files, I stopped using it for my email years and years ago. So I hardly ever checked that inbox. I have contacted the OneDrive team, who have sent me a genric email reply about looking in my Recycle bin for my missing files. - That is not going to work, I tried but there is nothing in the one drive account. I tried to pay for extra space on the account to see if I could restore the one drive to a previous date (I would want to go back about 1 year) - but after upgrading the account, it only lets me go back 30 days or so. After 23 years of using microsoft to store my files I am very disapointed that this could happen. If I was over my limit by a little bit... then why didn't Micosoft just stop letting me upload files... but delete all my files...! I have lost the videos of all my children being born, all the pictures of my kids when they where babies, the pictures of my mother who has now passed away. - I am so sad, even if I could get some of the files back I would be happy... but I have NOTHING!... I have replied to the oneDrive team and explained that looking in the recycle bin for my files dosn't work and I have shown them the email I found about the account being deleted. I just hope that some how I can get some of these files back. If there is anyone here.... anyone on the planet that reads this.... anyone at Microsoft that reads this.... that has any way possible for me to get any of these files back.... PLEASE help me.3.6KViews0likes0CommentsUsers of our iOS app are receiving a Certificate Error when login to their OneDrive
Hi, On or around February 18th, users of our iOS App have started receiving a certificate error when attempting to sign in to their OneDrive accounts: "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “skyapi.onedrive.onedrive.live.com” which could put your confidential information at risk." Obviously, the URL looks incorrect (too many "onedrive."'s in there...). The trouble is this URL is generated by "accountchooser.js" (Microsoft written) in code that looks like this: e.skyApiBaseUrl = "https://skyapi.onedrive." + document.domain + "/API/2/"; We use the https://github.com/OneDrive/onedrive-sdk-ios via a Cocoapod (nothing has changed here in years) and our App hasn't changed anything here in a similar time frame. So something recent looks to have changed, either in the accountchooser.js code, or in how "document.domain" is calculated/determined on iOS. For reference, our users are seeing this on iOS 15.3.x and iOS 15.4, so latest stable production releases. Is anyone seeing anything similar? Any help with where or how we should raise this issue would be helpful... Who is the responsible team for accountchooser.js? Attached a screenshot of a Proxyman capture on a clean iOS Simulator Offending Code Related Threads and Issues Raised https://docs.microsoft.com/en-us/answers/questions/751860/onedrive-certificate-broken.html?childToView=752843#answer-752843 https://docs.microsoft.com/en-us/answers/questions/747693/users-of-our-ios-app-have-just-started-receiving-a.html https://twitter.com/StrongboxSafe/status/14964678064512860212.1KViews0likes2CommentsOneDrive download issue: 401 Unauthorized
Hello, I'm Nick. Our team built a WordPress plugin written in PHP that integrates OneDrive as a remote storage solution. Recently, some users have reported issues downloading backups from OneDrive. To connect OneDrive, users need to authenticate their accounts. Here are the authorization codes used in the process. Once authentication is complete, the plugin retrieves the following information: access_token, refresh_token, and expires_in. $auth_id = uniqid('wpvivid-auth-'); $url = 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize' . '?client_id=' . urlencode('37668be9-b55f-458f-b6a3-97e6f8aa10c9') . '&scope=' . urlencode('offline_access files.readwrite') . '&response_type=code' . '&redirect_uri=' . urlencode('https://auth.wpvivid.com/onedrive_v2/') . '&state=' . urlencode(apply_filters('wpvivid_get_admin_url', '') . 'admin.php?page='.sprintf('%s-remote', apply_filters('wpvivid_white_label_slug', 'wpvivid')).'&action=wpvivid_pro_one_drive_finish_auth&sub_page=cloud_storage_onedrive&auth_id='.$auth_id) . '&display=popup' . '&locale=en'; header('Location: ' . esc_url_raw($url)); Fortunately, uploading to OneDrive seems to be functioning properly. We followed the official OneDrive documentation below to ensure a smooth upload process. https://learn.microsoft.com/en-us/answers/questions/1664570/download-issue-401-unauthorized According to the doc, create an upload session to upload files to OnDrive. Here are the code snippets: $url='https://graph.microsoft.com/v1.0/me/drive/root:/'.$path.':/createUploadSession'; $args['method']='POST'; $args['headers']=array( 'Authorization' => 'bearer '.$this->options['token']['access_token'],'content-type' => 'application/json'); if(!is_null($body)) { $args['body']=$body; } $args['timeout']=30; $response=wp_remote_post($url,$args); The session URL returned in the response: https://learn.microsoft.com/en-us/answers/questions/1664570/download-issue-401-unauthorized Utilize the session URL provided in the response to upload files: $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($curl, CURLOPT_TIMEOUT, 60); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $upload_size=min($upload_size,$file_size-$uploaded); if ($uploaded) fseek($file_handle, $uploaded); $headers = array( "Content-Length: $upload_size", "Content-Range: bytes $uploaded-$upload_end/".$file_size, ); $options = array( CURLOPT_URL => $url, CURLOPT_HTTPHEADER => $headers, CURLOPT_PUT => true, CURLOPT_INFILE => $file_handle, CURLOPT_INFILESIZE => $upload_size, CURLOPT_RETURNTRANSFER=>true, ); curl_setopt_array($curl, $options); $response=curl_exec($curl); Continue uploading file chunks using the 'nextExpectedRanges' provided in the response until the entire file is uploaded. We attempted to download the backup from OneDrive following the official documentation (https://learn.microsoft.com/en-us/answers/questions/1664570/download-issue-401-unauthorized). Unfortunately, the download process failed. Before proceeding, check if the file exists. Here's the code snippet for this step: $url='https://graph.microsoft.com/v1.0/me/drive/root:/'.$folder.'/'.$file.'?$select=id,name,size'; if(empty($except_code)) { $except_code=array(200,201,202,204,206); } $args['timeout']=$timeout; $args['headers']['Authorization']= 'bearer '.$this->options['token']['access_token']; $response=wp_remote_get($url,$args); The '$url' in the code snippet is https://graph.microsoft.com/v1.0/me/drive/root:/wpvividbackuppro/staging_untetheredbytinapayne_com/staging.untetheredbytinapayne.com_wpvivid-6639c8da6e73b_2024-05-07-01-23_backup_all.zip?$select=id,name,size '$args' parameter is {"timeout":30,"headers":{"Authorization":"bearer EwBoA8l6BAAUbDba3x2OMJElkF7gJ4z/VbCPEz0AAWP+nK+LDe9/gYinyOb9qXXwzcaMDpHlUCFgxpDiym9czdVDbAArgwmsGI+c+DqAyzgGEBf/QZ1hVSS/hFsPELNYdMwD8orcS+iadcYsRyOjIYA48NK6RVifg5VsQwLQvFOP/jO9Ho0mw17UoRrylJwNZ3uglKr4wL22Z1twPERWaBpdxaz1z2GHfZU+00HIL+QycgVLbQ+wvOrn6SZUVCAWQK+mPTy9hSFyZoitS1lGmUsKZ6D7ml9/5/FyVvVtXHt5nIGi9e2cdsRVy5XiXtbAuGz871TvBtCdgKE0n5Lj2JN/lKR/bEe4CjhkuttbrpBTP55l4ERb0/Ko5p8Od5MDZgAACH7rqvHkxM3OOAKgg4cMahuo1N0WkRW15qY1PgclkSaSBE6NEgecql5Koz+iUhBh457B7/dpyxncun89KFIoOZpxZn8WPY3epTqfFRLu1iSx1BgAB5sNqXC3Iqpsv5VpcHiySTwlctJHbbnHoEl8WVDRQgWxyjgQyXgEFV1u1kwvpywLZH6KRc++EV0/Axg9XnrW01xEI/0emiFndAmnSYnQ0meAjIXC3LDym+2KNUd05xF9dAeuW5lCJ+/tlpkPfcOY0uJhOMFHDaNCw7H6r/MhQGhHQVZeUm1NUCDi94RZ7xhNB0rDuI0PTKEWFcfR2TGQ/y/m+mYKikx0vsp/kFNp2QtIIbZL+JfvhB1b9n3ZlLT2j3fvZ6UNp5gODRzXLYeq8Wk3q+rFsJ4gG+2S3wqkjwyoB7muUbSWpHWXaFtVLu8RtTuoiu2YykfBy5M9+R0cCbeQ45P2ipD+ZK5WbIY0eUrRY+cPJ/K17UxcLBBTeCftJRW9KgYP1sFtfda1SXOm8PC5JW4YTP/AWcRmvqAIKaXJPKn92ZfBTlWQxxQNRxpJf8enPhl9p8+dj/sJx7M3vcCIUfXKtWt6LJld6ywI13oiSj0NZq3fPARJlrQvja5Z4Td55iW+oHIBKgOMzPCzxKXbSQ2O5mc3jYcY9iOewvehRF/fPS93aWyePaxApiWQ0bP13PqNTOBLWtzse1r1xQymF4B7FltTBrjVcV9PduAMe3u/bSewaQEf4Xgldv+KavdS8mDd+0ctRhV554YCcwI="}} The request response is {"headers":{},"body":"{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users('aa%40alphalegacyfund.org')/drive/root(id,name,size)/$entity","@odata.etag":"\"{8BB33EFA-F1B5-4D6E-A101-03F6F9173B8B},3\"","id":"9FC61E00E002D0E3!s8bb33efaf1b54d6ea10103f6f9173b8b","name":"staging.untetheredbytinapayne.com_wpvivid-6639c8da6e73b_2024-05-07-01-23_backup_all.zip","size":78335490}","response":{"code":200,"message":"OK"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}} After confirming the file exisitance, start downloading files. Here are the codes snippet: $url='https://graph.microsoft.com/v1.0/me/drive/root:/'.$path.'/'.$download_info['file_name'].':/content'; $headers['Range']="bytes=$downloaded_start-$downloaded_end"; $response=$this->remote_get($url,$headers,false,30); The '$url' in the code snippet represent: https://graph.microsoft.com/v1.0/me/drive/root:/wpvividbackuppro/staging_untetheredbytinapayne_com/staging.untetheredbytinapayne.com_wpvivid-6639c8da6e73b_2024-05-07-01-23_backup_all.zip:/content $args parameter is {"timeout":30,"headers":{"Authorization":"bearer EwBoA8l6BAAUbDba3x2OMJElkF7gJ4z/VbCPEz0AAWP+nK+LDe9/gYinyOb9qXXwzcaMDpHlUCFgxpDiym9czdVDbAArgwmsGI+c+DqAyzgGEBf/QZ1hVSS/hFsPELNYdMwD8orcS+iadcYsRyOjIYA48NK6RVifg5VsQwLQvFOP/jO9Ho0mw17UoRrylJwNZ3uglKr4wL22Z1twPERWaBpdxaz1z2GHfZU+00HIL+QycgVLbQ+wvOrn6SZUVCAWQK+mPTy9hSFyZoitS1lGmUsKZ6D7ml9/5/FyVvVtXHt5nIGi9e2cdsRVy5XiXtbAuGz871TvBtCdgKE0n5Lj2JN/lKR/bEe4CjhkuttbrpBTP55l4ERb0/Ko5p8Od5MDZgAACH7rqvHkxM3OOAKgg4cMahuo1N0WkRW15qY1PgclkSaSBE6NEgecql5Koz+iUhBh457B7/dpyxncun89KFIoOZpxZn8WPY3epTqfFRLu1iSx1BgAB5sNqXC3Iqpsv5VpcHiySTwlctJHbbnHoEl8WVDRQgWxyjgQyXgEFV1u1kwvpywLZH6KRc++EV0/Axg9XnrW01xEI/0emiFndAmnSYnQ0meAjIXC3LDym+2KNUd05xF9dAeuW5lCJ+/tlpkPfcOY0uJhOMFHDaNCw7H6r/MhQGhHQVZeUm1NUCDi94RZ7xhNB0rDuI0PTKEWFcfR2TGQ/y/m+mYKikx0vsp/kFNp2QtIIbZL+JfvhB1b9n3ZlLT2j3fvZ6UNp5gODRzXLYeq8Wk3q+rFsJ4gG+2S3wqkjwyoB7muUbSWpHWXaFtVLu8RtTuoiu2YykfBy5M9+R0cCbeQ45P2ipD+ZK5WbIY0eUrRY+cPJ/K17UxcLBBTeCftJRW9KgYP1sFtfda1SXOm8PC5JW4YTP/AWcRmvqAIKaXJPKn92ZfBTlWQxxQNRxpJf8enPhl9p8+dj/sJx7M3vcCIUfXKtWt6LJld6ywI13oiSj0NZq3fPARJlrQvja5Z4Td55iW+oHIBKgOMzPCzxKXbSQ2O5mc3jYcY9iOewvehRF/fPS93aWyePaxApiWQ0bP13PqNTOBLWtzse1r1xQymF4B7FltTBrjVcV9PduAMe3u/bSewaQEf4Xgldv+KavdS8mDd+0ctRhV554YCcwI=","Range":"bytes=0-2097151"}} The request response is 401 Unauthorized {"headers":{},"body":"{"error":{"code":"unauthenticated","message":"Unauthenticated"}}","response":{"code":401,"message":"Unauthorized"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}} Our plugin automatically checks for token expiration in every request. If a token is expired, it's refreshed to ensure uninterrupted service. We've carefully followed the OneDrive Learn Documentation for both uploading and downloading files in our plugin. However, we're consistently encountering a 401 Unauthorized error during the download process. Any insights or suggestions on resolving this issue would be greatly appreciated.1.8KViews1like1CommentOne Drive embed
Hi, since yesterday I've been having problems inserting the HTML code of the photo. Every time I click on generate, an error pops up "An error has occurred. Please try again later.". Sometimes, after waiting for 30 minutes, the error disappears, but this time I let it pass for more than 8 hours and nothing happened. It's a OneDrive with around 800 photos, and at the moment I'm trying to insert around 200 to 400 photos per day. I don't know if that has anything to do with it, and it's also a personal account. Thank you very much 🙂1.6KViews0likes1CommentGet share link at the time of upload through PHP script.
I have a 360 account and 5TB storage. I am building a web portal for my office so everyone can put their work data directly to my account i use PHP to build it so i need them to upload files and get the share link so they can share it to others employees. So please help something otherwise i have to go for drive api please help i love onedrive1.2KViews0likes2Comments