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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,836 questions
0 comments No comments
{count} votes