Skip to content

Could not upload file to sharepoint #2

@chaudoanminh

Description

@chaudoanminh

Hi @iamlu-coding

As tested this code, I could download file from sharepoint, and could not upload file to sharepoint via script, but I can upload via GUI (same path)

The error returned 403 code:

File "/home/azureuser/.local/lib/python3.8/site-packages/office365/runtime/client_object.py", line 44, in execute_query
self.context.execute_query()
File "/home/azureuser/.local/lib/python3.8/site-packages/office365/runtime/client_runtime_context.py", line 162, in execute_query
self.pending_request().execute_query(qry)
File "/home/azureuser/.local/lib/python3.8/site-packages/office365/runtime/client_request.py", line 62, in execute_query
raise ClientRequestException(*e.args, response=e.response)
office365.runtime.client_request_exception.ClientRequestException: ('-2147024891, System.UnauthorizedAccessException', 'Access denied.', "403 Client Error: Forbidden for url

Is there any advice on this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions