[英]Upload excel file from Databricks DBFS to SharePoint
How can I upload a file from Databricks DBFS to SharePoint using the library requests or any built-in library for REST API requests?如何使用库请求或任何内置库将文件从 Databricks DBFS 上传到 SharePoint REST API 请求?
I found solutions on using Office365-REST-Python-Client but I don't want to use 3rd party libraries.我找到了有关使用Office365-REST-Python-Client 的解决方案,但我不想使用第 3 方库。
According to my research and testing, we cannot upload files directly from Databricks DBFS to SharePoint. I recommend you use the following Rest API to upload file to SharePoint:根据我的研究和测试,我们不能直接从Databricks DBFS上传文件到SharePoint。我推荐你使用下面的Rest API上传文件到SharePoint:
https://{site_url}/_api/web/lists/getbytitle('{list_title}')/rootfolder/files/add
More information for reference: Upload a file by using the REST API and jQuery更多信息供参考: 使用REST API和jQuery上传文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.