Comments (13)
Hi @kmtbang What happens when you try it without the name conflict?
from onedrive-sdk-ios.
The same error happened without specifying name conflict. We added the name conflict part after seeing the error, hoping it will resolve the issue. but the same error occurs.
from onedrive-sdk-ios.
It looks like this is a bug in our App Folders API. To unblock you for now, is it possible you store the id of the item and use that to upload for future requests?
from onedrive-sdk-ios.
we'll try that.
By the way, when we tried the same upload code to upload the file to the app folder in a One Drive for Business account, the uploading of new files always returns error of "unsupported url" as follows:
:Error Domain=NSURLErrorDomain Code=-1002 "unsupported url" UserInfo={NSUnderlyingError=0x7fa83cc05770 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, NSErrorFailingURLStringKey=_api/v2.0/me/drive/special/approot:/Memo_20151013_123509.m4a:/[email protected]=replace, NSErrorFailingURLKey=_api/v2.0/me/drive/special/approot:/Memo_20151013_123509.m4a:/[email protected]=replace, NSLocalizedDescription=unsupported url}
The authorization with the One Drive Business account completed without any error. We used "myfiles.readwrite" and "myfiles.appfolder" for scopes during the authorization.
from onedrive-sdk-ios.
Currently AppFolder isn't supported in OneDrive for business, it's on our radar and we are working on it. I don't have a specific timeline for it yet.
from onedrive-sdk-ios.
Hi,
then for OneDrive for Business account , which folder can a third-party
app upload files to please?
2015-10-13 12:50 GMT-07:00 Ace Levenberg [email protected]:
Currently AppFolder isn't supported in OneDrive for business, it's on our
radar and we are working on it. I don't have a specific timeline for it yet.—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from onedrive-sdk-ios.
if you have read/write access you can upload to any of the users folders.
from onedrive-sdk-ios.
Hi,
we tried to upload to "Documents" folder, but always get "unsupported
url" error. When we authenticate the app with an OneDrive for Business
account, we use the scopes: "MyFiles.readwrite". The auth completed without
any error. Is the scope the correct one to use?
We tried two ways to upload to the "Documents" folder as follows, but got
the same "unsupported url" error.
- [[[[client drive] special:@"documents"] itemByPath:filename]
contentRequest] uploadFromFile:path completion:comletion - [[[[client root] itemByPath"@"Documents"] itemByPath:filename]
contentRequest] uploadFromFile:path completion:comletion
Thanks.
2015-10-13 16:29 GMT-07:00 Ace Levenberg [email protected]:
if you have read/write access you can upload to any of the users folders.
—
Reply to this email directly or view it on GitHub
#46 (comment)
.
from onedrive-sdk-ios.
OneDrive for Business doesn't have a "documents" folder. Most users just treat the root of their OneDrive for Business as their documents folder, so you can just upload files directly there, or as a better alternative, create a new folder specific to the kinds of files you're uploading and upload them there.
from onedrive-sdk-ios.
Error getting while uploading : Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSErrorFailingURLStringKey=https://api.onedrive.com/v1.0/drive/special/approot:/iSting_27_May_2016_17_05_23%0APart-2.Mov:/content, _kCFStreamErrorCodeKey=-4, NSErrorFailingURLKey=https://api.onedrive.com/v1.0/drive/special/approot:/iSting_27_May_2016_17_05_23%0APart-2.Mov:/content, NSLocalizedDescription=The network connection was lost., _kCFStreamErrorDomainKey=4, NSUnderlyingError=0x15ef14a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4}}}
from onedrive-sdk-ios.
if m try to upload video by interval than m getting this error, and if m upload video without interval it will upload successfully ,
please help me
from onedrive-sdk-ios.
The network connection was lost., _kCFStreamErrorDomainKey=4 , when try to upload video using interval
from onedrive-sdk-ios.
Please create a new issue if you have a problem. This issue has been closed.
from onedrive-sdk-ios.
Related Issues (20)
- library not found for -lADAL HOT 2
- OneDrive for Business - New Apps will not work due to Office 365 Discovery API Deprecation HOT 10
- Streamable path of file HOT 1
- Download thumbnail HOT 2
- improvement: Supply thumbnail urls in item request instead of having a separate request
- nameConflict not work
- Is this sdk outdated? HOT 5
- Discovery API will be deprecated
- One Drive Login PresentContrller iOS13
- Deprecated API Usage (UIWebView) HOT 6
- Urgent :: Use of deprecated ADAL version HOT 11
- IOS onedrive SDK needs to be updated. Uiwebview has been abandoned and needs to be replaced with wkwebview HOT 1
- Can't Sign in with MS account HOT 2
- Install without pods ?
- H
- Asd
- P
- webDavUrl does not work in mobile platform
- OneDrive SDK for iOS
- OneDrive for Business cTag not updated when folder contents changes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onedrive-sdk-ios.