sharepy icon indicating copy to clipboard operation
sharepy copied to clipboard

How to upload file using sharepy

Open arvindzagade opened this issue 4 years ago • 2 comments

Hi Jonathan,

I was able to download file using get method but not getting any success in uploading file to sharepoint location. Can you please suggest how to use post method to upload the file

arvindzagade avatar Apr 26 '21 13:04 arvindzagade

I'm having the same issue. s.getfile(filename) works with the sharepoint connect using credential and site URL. But s.post(site, data=content) does not. I get status 200 but no file is uploaded. I've tried my credentials and also a Service Account. Both have Full control permissions. I can upload in a browser but not via Python. Any ideas for an upload using sharepy?

smitwil04 avatar Oct 27 '21 11:10 smitwil04

Take a look at this issue https://github.com/JonathanHolvey/sharepy/issues/31

JonathanHolvey avatar Oct 28 '21 07:10 JonathanHolvey