# How can I upload a file to sharepoint?

**URL:** <https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780>\
**Category:** General\
**Created:** [17 May 2022 23:51 UTC](https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780 "2022-05-17T23:51:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarF](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@OscarF](https://discourse.nodered.org/u/OscarF)\
**Post date:** [17 May 2022 23:51 UTC](https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780/1 "2022-05-17T23:51:48Z")

</div>

Hi guys!

I want to upload a file to sharepoint by microsoft, but I don't know how to do it. Specifically I want to upload a pdf file.I read a post with a flow that uses the http request but I guess that it only works to publish data to a list. Can you give some advices to do it?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 May 2022 00:09 UTC](https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780/2 "2022-05-18T00:09:27Z")

</div>

In SharePoint, a document library _is_ a list.

Are you using SharePoint on-premise or Office 365?

---

<div class="post-metadata">

**Author:** ![OscarF](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@OscarF](https://discourse.nodered.org/u/OscarF)\
**Post date:** [20 May 2022 16:21 UTC](https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780/3 "2022-05-20T16:21:50Z")

</div>

I'm using SharePoint, but how can I upload a file into it? I'm accessing to SharePoint trough my Office 365

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 May 2022 16:45 UTC](https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780/4 "2022-05-20T16:45:46Z")

</div>

For SharePoint Online (Office 365), you need to set up and register your app using the libraries that Microsoft provide for accessing SharePoint from a node.js app (which is what Node-RED is).

Note that the owner of the tenancy has to permit you to do this and the system admin will need to register your app.

There is a LOT of documentation provided by Microsoft and you will need to do some research.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 July 2022 16:45 UTC](https://discourse.nodered.org/t/how-can-i-upload-a-file-to-sharepoint/62780/5 "2022-07-19T16:45:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
