Upload Images(approximately: 10.000 pieces, maximum: 1MB per image) to DocumentLibrary of the SharePoint using CSOM and Microsoft Graph v1.0

Sezgin Tabak 86 Reputation points
2021-02-25T06:12:12.167+00:00

Dear Sir or Madam,

I would like to upload Images from my company(approximately: 10.000, maximum: 1MB per image) to a SharePoint document library using CSOM and Microsoft Graph C Sharp codes or PowerShell or an alternative. Also I don't want to use user information(username and password) to connect the server.

I look forward to your valuable solutions/recommendations.

Kind Regards,
Sezgin Tabak

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,484 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,324 questions
0 comments No comments
{count} votes

Accepted answer
  1. Baker Kong-MSFT 3,801 Reputation points
    2021-02-25T08:01:27.1+00:00

    Hi @Sezgin Tabak ,

    I suggest you use the new PNP cmdlets, it supports the modern authentication that uses client id+ certificate/clientSecret.

    How to upload a file?

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sezgin Tabak 86 Reputation points
    2021-03-02T09:05:32.037+00:00

    Dear Baker,

    I am so sorry for late answer. Thank you very much for both your valuable time and your valuable answer. I am going to try your solution today and I will inform you soon.

    I wish you a healthy life and success with your works.

    Best,
    Sezgin

    0 comments No comments