official microsoft code example for onedrive upload not work

Andreas Rottmann 0 Reputation points
2024-05-08T15:41:24.1966667+00:00

Hy

I try to upload files via php to my onedrive since a few weeks.

It didn't work.

So I found this code example

https://learn.microsoft.com/de-de/graph/sdks/large-file-upload?tabs=PHP

But I got a error message:

Class new Models\AttachmentItem() not found


How can I require this class? I use require vendor autoloader, to include the Microsoft sdk. I think it's not enough

Thank yoy

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.