Umbraco Forms file upload size issue
# help-with-umbraco
w
We have a requirement to allow very large file sizes (2GB) be uploaded through Umbraco Forms. I've set the MaxRequestBodySize to 2147483648 I've set the maxAllowedContentLength to 2147483648 I can upload a 350mb file fine but trying to upload a 650mb file the form submits fine (no errors) but files are not included in the email or form entry. The 650mb file uploads fine through the Media Manager. Anybody know what else I might be missing? Am testing with .mp4 and .zip - they're not disallowed file types and I've even tried specifying them in the allowed form list. Umbraco 13.3.0 Umbraco Forms 13.1.2 IIS Also using FormKit if that's causing an issue (haven't ruled that out yet).
s
To be honest, I think that's not what Forms is made for... 😅 But any limitations you see are purely server configuration limitations, so you'll need to look into that. However, because it is a very simple
<input type="file">
button, I am pretty sure your users will have a sub-par experience. If anything happens, there's no automatic resume and you won't be seeing progress indicators either.
m
Emails also have a max attachment size
s
oh I didn't see the email part! yeah.. please don't do that 🙈
w
Not trying to add them as attachments, just print out the list of files linking to backoffice, but the property value is empty. No warnings errors thrown etc so no idea where it's falling over
h
Agree with Sebastiaan HTML form inputs not really designed for uploading files that large.
It can be done, but probably best to use JavaScript blob chunks https://accreditly.io/articles/uploading-large-files-with-chunking-in-javascript
w
Thanks, I'll give that a read. An unforeseen limitation of using the Umbraco Forms API.
h
Not really, it is a http/server limitation
r
Also the real question is why do you need upload a file that is more that 10 mb .. ? I know we used to limit files bigger than 2 mb but that was because space on your web server was limited and therefore expensive . You should really look at your traffic.. if you are getting that much above a limit surely , surely using a hosted service like wetransfer is a safer bet..
w
We have a design/print client who regularly work with 100+mb files
r
okay well that's their fault.. grins
217 Views