Currently, I have a basic file upload feature set up using knockout within my durandal website. The process involves converting the file to a base64StringArray and then uploading it to the server using an AJAX post method like this:
$.post("localhost/uploadDocument", dataToPost)
In my application, I have implemented request filtering with the following configurations:
<requestLimits maxAllowedContentLength="31457280" />
along with
<httpRuntime targetFramework="4.5.2" maxRequestLength="30720" />
This setup enforces a 30mb file size limit.
The issue arises when trying to upload a specific Microsoft Excel file that contains embedded PDF files. This particular file has a size of 14,887,424 bytes, but upon upload, Fiddler reports that 49,158,346 bytes were actually transmitted, resulting in a 404.13 error - indicating that the request content length has been exceeded.
I am puzzled as to why such a large number of bytes are being sent for this Excel file with embedded PDFs.