Uploading HTML file to media folder

Vote:
 

Hi

I am trying to upload html file (around 420KB) to episerver cms media folder. Files are uploaded successfully however when I am trying to view the files using 

it only shows me truncted file (around 320KB).
This is happening even when I try to download the same file. I am getting truncted file back.
Just to put this in context we have other file types (pdf, word documents etc) with larger sizes and they are uploading/downloading without any issues.
The issue is not happening on local developer machine and is only happening in DXC integration/staging/production environments only.
I have tried to increase the file size by adding following in my web.config without any luck
<requestFiltering removeServerHeader="true" >
<requestLimits maxAllowedContentLength="1048576000" />
</requestFiltering>


<httpRuntime maxRequestLength="1048576000" requestValidationMode="2.0" />
#218668
Mar 18, 2020 9:31
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.