I've been trying to integrate Onedrive into our Moodle system in order to be able to upload files into assignments that are of a large file size. Basically over the limit of the current server settings for a file upload.
I've set up the Oauth2 settings within Moodle and registered a new Microsoft app etc.
When I go to upload a file, and select "Create an access controlled link to the file", I get the following notification exception when trying to upload:
Exception - Call to a member function get_itemid() on boolean
If I select the other option, to make a copy of the file, it works fine. However, I think I need to have it working as above so it's not stored in the Moodle file system .
* line 265 of /repository/repository_ajax.php: Error thrown