Coder Social home page Coder Social logo

Comments (13)

aclev avatar aclev commented on August 16, 2024

Hi @kmtbang What happens when you try it without the name conflict?

from onedrive-sdk-ios.

kmtbang avatar kmtbang commented on August 16, 2024

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.

aclev avatar aclev commented on August 16, 2024

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.

kmtbang avatar kmtbang commented on August 16, 2024

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.

aclev avatar aclev commented on August 16, 2024

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.

kmtbang avatar kmtbang commented on August 16, 2024

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.

aclev avatar aclev commented on August 16, 2024

if you have read/write access you can upload to any of the users folders.

from onedrive-sdk-ios.

kmtbang avatar kmtbang commented on August 16, 2024

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.

  1. [[[[client drive] special:@"documents"] itemByPath:filename]
    contentRequest] uploadFromFile:path completion:comletion
  2. [[[[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.

rgregg avatar rgregg commented on August 16, 2024

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.

Ram-iOS avatar Ram-iOS commented on August 16, 2024

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.

Ram-iOS avatar Ram-iOS commented on August 16, 2024

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.

Ram-iOS avatar Ram-iOS commented on August 16, 2024

The network connection was lost., _kCFStreamErrorDomainKey=4 , when try to upload video using interval

from onedrive-sdk-ios.

kevklam avatar kevklam commented on August 16, 2024

Please create a new issue if you have a problem. This issue has been closed.

from onedrive-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.