I am trying to upload read only excel but getting this error

I am trying to upload the read only excel file using upload file and folder of microsoft office 365 but getting the error as mentioned below
Upload File: Access to the path ‘C:\UiPath Project - Scheduling Scorecard\Scheduling Scorecard\Test\Scheduling Scorecard 12-12-22_AM_AM.xlsx’ is denied.
Can anyone help me to solve this?

Do you have access to the this path? @Kunal_Jain

Yes
I have access to the path

@Kunal_Jain

Can you try copying the same file else where and then try upload and check once

cheers

@Kunal_Jain , I think you must provide full access to the specific folder.

It is uploading directly
But not through the code

@Kunal_Jain

If the folder is in read only then also the file might not be accessible through the code

Cheers

No Folder is not in read only
But the file is