Python Upload Files To SharePoint Using Office365 Rest Package Part 2

preview_player
Показать описание
I have made a previous video on uploading files to SharePoint using the SharePlum package, but in this video we will be using the Office365 Rest Client package.

In this video we will add on to the office365_api file, by adding a function for uploading files.

I will be showing examples on how to upload files from local directory to SharePoint.

I will be added on to source code which can be find on my GitHub account (view below).

Sponsor video by:

Support my Channel

Book a 1 on 1 meeting with me at:
Рекомендации по теме
Комментарии
Автор

Awesome video !! Great explanation, makes it easy to understand, great work as always.
Thanks Lu 😀

pythondeveloper
Автор

Thank you very much! This was super helpful

rodrigogomezmaleno
Автор

Hey, It would be great if you make video about how to set the metadata in columns along with file upload.

sachinsalve
Автор

hi Lu,
I tried to follow your tutorial here and ran into this error with this line of code. Been trying to search the error but nothing useful comes up.

target_folder =


error: AttributeError: 'function' object has no attribute 'web'

khoanguyen
Автор

Hi Lu, Greetings. I'm getting below error "Access has been blocked by Conditional Access policies. The access policy does not allow token issuance"

maryvisuvasam
Автор

Is there a way to upload data to a column field with files or do you have to loop through the files and update the column after the upload? I need to link a (known) unique ID with all attachment.

TL-ydbt
Автор

Thanks for this great video! I have one question, sometimes when I am uploading the files with python, and the other users keep the file with the same name open, then I cannot upload the file. Do you know any methods which can upload the file with the same name while other users are using the file? Because some colleagues are not from the same country, if they are on vacation, it is hard to tell them to close the file. I am updating the file locally with python script, so I need to download it, update it, and upload it to sharepoint all with python.

yanglingtong
Автор

Hi Lu, great video. I have one question. When I try to upload large file I get the error "Microsoft.SharePoint.Client.InvalidClientQueryException', 'The request message is too big. The server does not allow messages larger than 262144000 bytes.', "400 Client Error: Bad Request for url: " . Is there a way to upload larger files? Thanks

KevinLoughran-yxtl
Автор

Hey Lu, I am getting error like : An error occurred while retrieving token from XML response: AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.
and I am trying on company SharePoint.

smkplays
Автор

HI Lu, in my case, it was a link on sharepoint, but i have to do some clicks to export the file. Then I got a .ipy file. There is a xml file inside the ipy file. After that it will automically to excel. In this case, how could I set up the connection string in python to pull data? would you mind share your email? thanks

shanhuahuang
Автор

can you please show us how to return the upload status code?

shawerahmed
Автор

Lu, does the Office365 API let you export to MS Word documents?

rickmedlin
Автор

Thank you 😃
How can i get link for share a Sharepoint folder?

Juanpfrancos
Автор

Hi Lu, when trying to upload a file I get this error: Expecting value: line 1 column 1 (char 0). Do you have any recommendations? Thanks!

chrisparkinson
Автор

Hi Lu, I am using my username and password for authentication and getting the error as below.
OS error, tunnel connection failed, is error, tunnel connection failed: 403 forbidden. We have a policy in place but no way to add an exception here. Please guide.

ucsrfff
Автор

Hello, am using user authentication and I'm getting index error at this line..
assertion_node = dom.getElementsByTagNameNS("urn:oasis:names:tc:SAML:1.0:assertion", 'Assertion')[0].toxml()
IndexError: list index out of range

anyone face anything similar?

jfwong
Автор

Hi Lu, could you help me?

I'm trying to access SharePoint with my login and password, which are authorized in principle. However, I can't access the SharePoint link. The error that appears is this:
What can I do to fix this error?

nataliesiqueira
welcome to shbcf.ru