Hi All, I know that in previous version you could modify a line in the web config to change the max file size limit for media items in Umbraco but I've read through this article already and it doesnt seem to apply to 7. Would anyone happen to know how to do this version 7?
Hey guys thank you so much for the quick answers and I'm sorry for the redundant question in the forum. I tried with you suggested and updated my web.config to
but I'm getting this error message when I try to upload a 151MB mp4 file into the media section. Since the drag and drop way wasn't showing up anything I made a file manually and then tried to upload the mp4 file - that is where I got the error message.
Thanks Jan! I added that section to the staticContent like you suggested. I updated the httpruntime maxrequestlength to 524288000 and I tested a 6MB image just to make sure that I could in fact upload larger than the default max size file and that worked. I do still have the security maxallowedcontentlength which is currently set to 524288000. I tried reuploading the video file again but it didnt work.
I think it may be the video file type? I tested uploading some other large files into the media section and they all worked. I tried a 136MB PSD file, and a 228MB zip file and those uploaded just fine. So I think you guys have sucessfully helped me fix the file size upload limit, thank you very much! Again I'm sorry for the redundant post. I didn't realize I was having the same issue. =\
I'm going to keep working on trying to figure out why my video isn't uploading though. Thank you bunches for the help so far!!
Well I would be surprised if there is a server setting you need to set since it should be enough to define it at the application level, which is in the web.config file.
Is it happening on a local site or a live site? If live...who is hosting the site?
Ah ha! I refreshed the page and I tried the video again to double check and I let it sit there for a while and it worked! It took a minute but it worked! =D yay!! Before the save button was graying out and it would just sit there and I hit reload nodes to see if it uploaded but nothing happened. I'm sure the changes you suggested to make to the web.config are what fixed it though because I haven't done anything else but sit here and try to upload giant files. Thank you so much for all your help!! =) I'm glad this is working now. It was the last piece to finish this portal.
I must learn to be more patient now! :) Seriously, thank you so much for your help! I'm super grateful that the Umbraco community is so helpful! People like me need it! lol
Hi, attention please. Into the U7 web.config, there is already the httpRuntime rule.
So you need to add only the key maxRequestLength="153600" to that rule.
We have a video upload feature within our Umbraco site. Earlier our client could upload 50 MB mp4 files on the live site. But recently they started getting the below error, when they upload approx 48 MB mp4 file. I tried on my local and UAT environment and I could upload 48 MB mp4 files by setting the maxRequestLength and maxAllowedContentLength values as mentioned in this discussion above. Any thoughts on what can be the other reason for file upload failure? (Is SQL database size need to be changed? or IIS/Firewall issue?) FYI, We recently upgraded our Umbraco to 7.5.3 version and on server we have IIS 8.5.
Request error: The URL returned a 404 (not found):
/standards/umbraco/backoffice/UmbracoApi/Media/PostSave with data: ... Contact your administrator for information.
When we copied the same Umbraco database locally, we could upload 48 MB files.
max media file size limit in version 7
Hi All, I know that in previous version you could modify a line in the web config to change the max file size limit for media items in Umbraco but I've read through this article already and it doesnt seem to apply to 7. Would anyone happen to know how to do this version 7?
Thank you!
Hi Blake
Well you probably also need to set max file size limitation then.
Have a look at this article from Jeavon Leopold at the 24days.in/umbraco advent calendar to see where and how to add it.
Hope this helps! :)
/Jan
Good -:)
HI Blake, this didn't work for you? It shouldn't be Umbraco version dependent, as the httpruntime element really an element of .NET.
-Amir
@Amir
Sometimes you need to add this as well
As mentioned in the article I refer above :)
/Jan
@Jan, great guide for config tweaks!
-Amir
Yup, Jeavon did a good job (As always) :-)
/Jan
Hey guys thank you so much for the quick answers and I'm sorry for the redundant question in the forum. I tried with you suggested and updated my web.config to
Web.config:
<httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" maxRequestLength="512000" executionTimeout="99999" />
I also added this in the system.webServer section:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="157286400" />
</requestFiltering>
</security>
but I'm getting this error message when I try to upload a 151MB mp4 file into the media section. Since the drag and drop way wasn't showing up anything I made a file manually and then tried to upload the mp4 file - that is where I got the error message.
Error Message:
Request error: The URL returned a 404 (not found):
/umbraco/backoffice/UmbracoApi/Media/PostSave
with data:
{"key":"contentItem","value":{"id":1440,"properties":[{"id":5206,"alias":"umbracoFile","value":{"selectedFiles":"LeeValent Group Video.mp4"}},{"id":5207,"alias":"umbracoExtension","value":""},{"id":5208,"alias":"umbracoBytes","value":""}],"name":"LeeValent Group Video","contentTypeAlias":"File","parentId":1072,"action":"save"}}
Contact your administrator for information.
I appreciate the help very much. Thank you!!
Hi Blake
Ok, the file is 151 MB...the limits set in the examples from my article allow file sizes of 150 MB.
So you need to allow for something higher...Like 524288000 - This should give you 512 MB.
However you probably also need to make sure that the server knows the mime-type of the file you're trying to upload.
To make sure that you won't have any issie with the most common file types copy/paste the following within the section in the web.config as well - It's from the html5 boilerplate best practices for the web.config here https://github.com/darktable/html5-boilerplate-server-configs/blob/master/web.config
I Hope this helps :)
/Jan
Thanks Jan! I added that section to the staticContent like you suggested. I updated the httpruntime maxrequestlength to 524288000 and I tested a 6MB image just to make sure that I could in fact upload larger than the default max size file and that worked. I do still have the security maxallowedcontentlength which is currently set to 524288000. I tried reuploading the video file again but it didnt work.
I think it may be the video file type? I tested uploading some other large files into the media section and they all worked. I tried a 136MB PSD file, and a 228MB zip file and those uploaded just fine. So I think you guys have sucessfully helped me fix the file size upload limit, thank you very much! Again I'm sorry for the redundant post. I didn't realize I was having the same issue. =\
I'm going to keep working on trying to figure out why my video isn't uploading though. Thank you bunches for the help so far!!
Hi Blake
Well I would be surprised if there is a server setting you need to set since it should be enough to define it at the application level, which is in the web.config file.
Is it happening on a local site or a live site? If live...who is hosting the site?
/Jan
...And if you set "customErrors" to "off"...do you then get a more detailed error message?
/Jan
Ah ha! I refreshed the page and I tried the video again to double check and I let it sit there for a while and it worked! It took a minute but it worked! =D yay!! Before the save button was graying out and it would just sit there and I hit reload nodes to see if it uploaded but nothing happened. I'm sure the changes you suggested to make to the web.config are what fixed it though because I haven't done anything else but sit here and try to upload giant files. Thank you so much for all your help!! =) I'm glad this is working now. It was the last piece to finish this portal.
Hi Blake
Very happy to hear that - was going out of my mind as well over this :D
However it's probably because that v7 is caching a lot harder than we're used too so sometimes recycling the app pool is not enough.
/Jan
I must learn to be more patient now! :) Seriously, thank you so much for your help! I'm super grateful that the Umbraco community is so helpful! People like me need it! lol
I am stuck in the same situation. Did everything. Can anyone help me here. Just trying to add simple .mp4 videos via the media section on Umbraco 7
I get in red NOT FOUND NOT FOUND errors
Hi Syed, I was having the same problem. Getting rid of the
<security> <requestFiltering> <requestLimits maxAllowedContentLength="4000000" /> </requestFiltering> </security>
worked for me. All uploads started to work.
Hi, attention please. Into the U7 web.config, there is already the httpRuntime rule. So you need to add only the key maxRequestLength="153600" to that rule.
and you need add
in the the system.webServer section
Hello Umbraco Team,
We have a video upload feature within our Umbraco site. Earlier our client could upload 50 MB mp4 files on the live site. But recently they started getting the below error, when they upload approx 48 MB mp4 file. I tried on my local and UAT environment and I could upload 48 MB mp4 files by setting the maxRequestLength and maxAllowedContentLength values as mentioned in this discussion above. Any thoughts on what can be the other reason for file upload failure? (Is SQL database size need to be changed? or IIS/Firewall issue?) FYI, We recently upgraded our Umbraco to 7.5.3 version and on server we have IIS 8.5.
Request error: The URL returned a 404 (not found): /standards/umbraco/backoffice/UmbracoApi/Media/PostSave with data: ... Contact your administrator for information.
When we copied the same Umbraco database locally, we could upload 48 MB files.
is working on a reply...