# Uploading large Videos / Saving on Server

**URL:** https://discourse.nodered.org/t/uploading-large-videos-saving-on-server/36498
**Category:** General
**Created:** [25 November 2020 06:08 UTC](https://discourse.nodered.org/t/uploading-large-videos-saving-on-server/36498 "2020-11-25T06:08:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mrSidX](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrsidx/32/18935_2.png) [@mrSidX](https://discourse.nodered.org/u/mrSidX)
#### Post date: [25 November 2020 06:08 UTC](https://discourse.nodered.org/t/uploading-large-videos-saving-on-server/36498/1 "2020-11-25T06:08:41Z")

</div>

I'm trying to allow large file uploads, mainly videos, to the node-red server, and save the files to a location on disk.

I've tried Nicks example: [https://flows.nodered.org/flow/c70d0b4c54b583cf30c7e989b74feb68](https://flows.nodered.org/flow/c70d0b4c54b583cf30c7e989b74feb68)

I tried it and get a maxFilesize exceeded error. I tried to adjust the maxFileSize variable in the defaultOptions object, and still get this message. I've tried to deploy, and clear browser cache. Error persists.

What am I doing wrong?

What are the limits of the http (Allow File Uploads)?

---

<div class="post-metadata">

### Author: ![mrSidX](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrsidx/32/18935_2.png) [@mrSidX](https://discourse.nodered.org/u/mrSidX)
#### Post date: [25 November 2020 06:11 UTC](https://discourse.nodered.org/t/uploading-large-videos-saving-on-server/36498/2 "2020-11-25T06:11:55Z")

</div>

Nevermind, I found the html node had the option, changed it and it worked. I presume the `dropzone.js` template also needs to be of the appropriate size as well.

```auto
    // "myAwesomeDropzone" is the camelized version of the HTML element's ID
    Dropzone.options.myDropzone = {
      paramName: "myFile", // The name that will be used to transfer the file
      maxFilesize: 20000, // MB
      accept: function(file, done) {
        if (file.name == "justinbieber.jpg") {
          done("Naha, you don't.");
        }
        else { done(); }
      }
    };
</script>

```

---

<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: [9 December 2020 06:12 UTC](https://discourse.nodered.org/t/uploading-large-videos-saving-on-server/36498/3 "2020-12-09T06:12:01Z")

</div>

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