Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upload a new file in existing folder #9

Closed
aravintha opened this issue Nov 17, 2015 · 3 comments
Closed

How to upload a new file in existing folder #9

aravintha opened this issue Nov 17, 2015 · 3 comments

Comments

@aravintha
Copy link

How to upload a new file in existing folder

@krizalys
Copy link
Owner

  1. Get an Object instance to the existing folder using Client::fetchObject($objectId)
  2. Use Folder::createFile($name, $content) on the returned object and pass it your file's contents/handle as the second parameter

Please see the documentation in the source code for more details on the function interfaces.

@aravintha
Copy link
Author

There is one way. You can find the folder id by reading all the folders in OneDrive.

@huydang284
Copy link

@aravintha thank you. I found the solution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants