# File upload to Azure

**URL:** <https://discourse.nodered.org/t/file-upload-to-azure/45109>\
**Category:** Dashboard\
**Created:** [3 May 2021 12:25 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109 "2021-05-03T12:25:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jochen1980](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@Jochen1980](https://discourse.nodered.org/u/Jochen1980)\
**Post date:** [3 May 2021 12:25 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/1 "2021-05-03T12:25:42Z")

</div>

Hello,

I'm trying to use this [flow](https://flows.nodered.org/flow/5805a1141b1212d2c55c1781b9dbd15b) to upload a file to node-red server (Azure) but I always get the answer "Error: only files are allowed".  
I checked the node-red folder for the uploaded file - nothing. I created an upload folder but also no success.

Anybody an idea what I'm doing wrong?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 May 2021 16:59 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/2 "2021-05-03T16:59:53Z")

</div>

What are you trying to upload?

---

<div class="post-metadata">

**Author:** ![Jochen1980](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@Jochen1980](https://discourse.nodered.org/u/Jochen1980)\
**Post date:** [4 May 2021 05:06 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/3 "2021-05-04T05:06:03Z")

</div>

I'm trying to upload an image and a textfile.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 May 2021 10:23 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/4 "2021-05-04T10:23:20Z")

</div>

Are you trying to upload both at once?  
Have you made any changes to the sample flow?  
is NR running on theAzure machine?

---

<div class="post-metadata">

**Author:** ![Jochen1980](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@Jochen1980](https://discourse.nodered.org/u/Jochen1980)\
**Post date:** [4 May 2021 10:51 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/5 "2021-05-04T10:51:55Z")

</div>

I'm not trying to upload both at once. I just tried both filetypes.  
I didn't change the flow.  
NR is running on an Azure VM, is that a problem?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 May 2021 14:51 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/6 "2021-05-04T14:51:19Z")

</div>

So are you trying to send a file from your local machine to be stored on the Azure VM?  
Remember NR is running on the Azure VM so it will have access to the files in it’s on device, not the machine you are accessing NR from.

If you want to store files from your local machine, R will have to have network access to the location of those files or you could try the FTP node.

---

<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:** [3 June 2021 14:52 UTC](https://discourse.nodered.org/t/file-upload-to-azure/45109/7 "2021-06-03T14:52:10Z")

</div>

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