0

I state that I am a beginner regarding SharePoint Online. My question is to know if there is a way to upload a (PDF) file to SharePoint Online with php. Basically I own a site in drupal, so I would like to load PDF files through php code so as to integrate it into the site.

I've read this post (Using Linux Shell scripting to upload a document to SharePoint) , but I'm not sure how to use the answers or if they are right for me.

Can someone help me? Thank you

0

Use RESTAPI to upload the file. You should authenticate your client(this case PHP code)

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest?redirectedfrom=MSDN

I am not a PHP guy but I can see there are success stories. Give a try.

https://stackoverflow.com/questions/12005601/how-to-authenticate-with-sharepoint-online-for-a-php-app

1
  • Thank you! It solved my problem – Hamza Oct 13 '20 at 9:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.