python-o365
python-o365 copied to clipboard
Upload filename in sharepoint not honored for large files
If we do an upload to a sharepoint folder with a small file, everything works as designed. So:
folder.upload_file(filename_from, filename_to)
where filename_from is "/testdocument/flip.pdf" and filename_to is "bogus.pdf". bogus.pdf is found in the folder on sharepoint.
However when we have a file of 50 MB and do the same, we get a file "flip.pdf" instead of bogus.pdf
I don't know what this could be:
As you see here, I pass the filename provided:
https://github.com/O365/python-o365/blob/master/O365/drive.py#L1283