1
KB Article File Upload Size
Question asked by Shannon Yates - 11/13/2017 at 11:27 AM
Answered
We are wanting to create a KB article which is going to contain a file that is 2GB but every time we go to the file manager to upload it, it fails.
 
We have to have this file attached, what do we need to do to update this setting?
Thank you,
Shannon Yates
 Help Desk
  Confidence, Trust, Leadership. Traditions since 1923
 
12487 Plaza Drive  |  Cleveland, Ohio  44130-1084

7 Replies

Reply to Thread
0
Derek Curtis Replied
Employee Post
What type file is it? A download? Can it be hosted externally and linked via a screenshot or something? 
Derek Curtis COO SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
Derek Curtis Replied
Employee Post Marked As Answer
I checked on this and the 2GB limit is a hard limit and can't be edited by simply modifying a XML file. Is there any way to compress the file or have it hosted externally -- like from a downloads directory on your website -- and then linked?
Derek Curtis COO SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
Shannon Yates Replied
That is not something that we would like to do as we are using the KB articles to push out software patches to our customers. The other issue is that the file is “100MB not 2GB” and that it doesn’t work at that size either.
Thank you, Shannon Yates Help Desk Confidence, Trust, Leadership. Traditions since 1923 12487 Plaza Drive | Cleveland, Ohio 44130-1084
0
Derek Curtis Replied
Employee Post
Make sure the file type/extension you're attempting to upload has been added to the "Allowed extensions for document uploads in HTML editor." That is found by logging in as an administrator and going to Settings --> Configuration --> Security and clicking on the Uploads tab.
Derek Curtis COO SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
Derek Curtis Replied
Employee Post
Also, I was misinformed: the upload size is limited to 2MB. However, you can modify that by editing the web.config file for your installation. Just realize that, if you do this, you'll need to carry that modification over to any upgrade you perform as the web.config file gets overwritten on each installation.

And finally, if you're pushing software updates to customers, I'm pretty sure linking to the download is perfectly fine and something virtually everyone does. There's no need to add the file to the KB article itself when a link to download the update works just fine. We do that, Microsoft does it and most other software companies do it.
Derek Curtis COO SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
Shannon Yates Replied

.ZIP is already allowed

 

What specifically needs to change in the web.config to allow > 2MB uploads on IIS7+

Thank you, Shannon Yates Help Desk Confidence, Trust, Leadership. Traditions since 1923 12487 Plaza Drive | Cleveland, Ohio 44130-1084
0
Derek Curtis Replied
Employee Post
On my test install, it does look like the web.config already sets the limit to 20MB. Regardless, if you want to edit the web.config to allow for uploads of, say, 150MB just to be safe, here's what you'd edit. You'll want to open the web.config in a text editor (and make sure you have admin privileges) and change this line:

<httpRuntime targetFramework="4.5" maxRequestLength="20480" executionTimeout="240" requestValidationMode="2.0" maxQueryStringLength="4096" />

The "20480" is what you'd set to your number, in KB. So if you wanted to allow 150MB uploads, that would change to "153600". (Remember, this is in KB.)

Again, that change would need to be propagated on any install as the web.config is overwritten on installs, upgrades, etc.
Derek Curtis COO SmarterTools Inc. (877) 357-6278 www.smartertools.com

Reply to Thread