Why do I get permission denies error when uploading files in sharepoint online?

Sujan Shrestha 1 Reputation point
2021-02-08T07:55:27.197+00:00

I am an admin in my sharepoint account and I'm using this plugin to upload images. but, it doesn't allow me to manually upload images.

This is the response I get:

{
"odata.error": {
"code": "-2147024891, System.UnauthorizedAccessException",
"message": {
"lang": "en-US",
"value": "Access denied. You do not have permission to perform this action or access this resource."
}
}
}

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,026 Reputation points
    2021-02-09T07:05:48.653+00:00

    Hi @Sujan Shrestha ,

    From the error message, it seems to be permissions problem. Please make sure you have the permission to the sites where you upload the images to.

    SharePoint Admins don't have automatic access to all sites, but they can give themselves access to any site.

    So try to give yourself site administrators permission to the site where you upload images to, check if it works.


    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