• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Request entity is too large

Explorer ,
Feb 12, 2024 Feb 12, 2024

Copy link to clipboard

Copied

Hi,

 

I use the below code to allow users to upload file(s) from the browser to our File Server.  

 

<cffile action="UPLOAD"
filefield="#ThisFile#"
destination="#NewDir#"

nameconflict="Overwrite" <!--- nameConflict="Error" ---> >

 

Every now and then,  it will give users an error. 

"The page was not displayed because the request entity is too large." 

Today, a coworker was having this issue from his laptop from another location. 

So, I uploaded the file for him, using the same Cold Fusion interface. 

 

Of the 10 attempts, 2 attempts yielded the SAME errors and the other attempts went through without problems. 

 

When the error occurred, I could not find anything in the application.log. 

I have connection speed above 100MB/s both upload and download. 

The file in concern was only 100k in size. 

 

I could only find the below thread on this topic. 

https://community.adobe.com/t5/coldfusion-discussions/http-error-413-1-request-entity-too-large/m-p/...

In it, it seems that said that the error could occur when SSL certificate negotiation failed.

 

The ColdFusion application is under our Intranet, powered by Coldfusion.

A few months ago, we updated our SSL Certificate update where instead of a site specific SSL certificate, we are using a wildcard certificate for all sites in our domain. After that, whenever someone logs into our network for the first time (or after clearing cache), users will get the below.  User will need to click "Cancel" and then it will work.

dchangfcstategau_0-1707799914129.png

So, could this the above caused the Request entity is too large issue?  

More importantly, how could I further troubleshoot/resolve "Request entity is too large" when user uploads files?

 

Thanks.

 

Dan Chan

 

TOPICS
Documentation , Getting started

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

When I've seen that error, it's been at the web server level.  Not ColdFusion.  Check your web server settings to see what the maximum request size is set at.  If you have multiple web servers, this will need checked on each one.  I know in IIS this setting is in the Request Filtering area. 

 

You could also check the Maximum Post size in the CFAdmin settings.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

Hi @sdsinc_pmascari ,

Thanks for the reply.

I think you are referring to this IIS setting.  

dchangfcstategau_1-1707864238056.png

and this CFSetting. 

 

dchangfcstategau_0-1707864214927.png

As you can see, they are both set at about 100MB.  The file that I had issue with was not even 1MB in size. 

 

Also, when I repeat the upload steps multiple times, ColdFusion server will take it some times, but throw 

"The page was not displayed because the request entity is too large."  error.

 

Any ideas?  

 

dchan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2024 Mar 24, 2024

Copy link to clipboard

Copied

Might this be caused by the value in the following setting?

filefield="#ThisFile#"

 

Does the error go away when you use the name of the form-field instead? That is,

<cffile action="upload" filefield="clientUpload321">

<form method="post" action=<cfoutput>#cgi.script_name#</cfoutput> 
name="uploadForm" enctype="multipart/form-data"> 
<input name="clientUpload321" type="file"> 
<br> 
<input name="submit" type="submit" value="Upload File"> 
</form> 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 25, 2024 Mar 25, 2024

Copy link to clipboard

Copied

LATEST

Hi @BKBK ,

 

I haven't gotten another compliants about this for about a month now.   I don't know if the issue resolves itself or hasn't been reported yet.

 

Reviewing the question, I saw that this issue may be related to SSL Certification negotiaion error.

 

We did have that issue after we changed our SSL Certificate from site specific to a wildcard one.  Then, some users, upon logging into our Intranet, would be prompted to choose a SSL Certificate, which they need to click cancel to continue.  I found an article about this.  The solution was basically setting the SSL Parameter under IIS to "Ignore" like below.

dchangfcstategau_0-1711369637594.png

 

This seems to solve the SSL Certificate issue for us.  May be it resolves this file upload issue with ColdFusion as well. 

 

Thanks.

dchan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation