cfile action upload does not accept files larger than 2mb in Lucee 6.0.1.83 when cffile is invoked by javascript.
502 error bad gateway is returned by the server.
Downgrading to 6.0.585 started working again.
OS Linux (4.9.0-19-amd64) 64 bit
Servlet Container: Apache Tomcat/8.5.31
This is a tomcat issue not a lucee issue.
in your server.xml
set
maxPostSize=“20971520” // 20 meg, vs default 2 meg
you could also set in web.xml, under the lucee servlet
<max-file-size>52428800</max-file-size> <!-- 50 MB -->
<!-- Maximum request size allowed for upload -->
<max-request-size>209715200</max-request-size> <!-- 200 MB -->
See:
https://tomcat.apache.org/tomcat-9.0-doc/config/http.html
2 Likes
Changing maxPostSize in server.xml does not work, I’ve tested it before, same 502 error with files over 2Mb. Lucee 6.0.585 does not have this issue.
Have you tried comparing the two server.xml files?
Connector on 8888 are the same, maxPostSize is not present in 6.0.585 and not present in Lucee 6.0.1.83
did you restart your server?
did you editted the correct file?
I had to make tweaks to IIS to get mine working. Are you using IIS?`
Here’s my post regarding this
I found the issue
In IIS if I go to REQUEST FILTERING → EDIT FEATURE SETTINGS and I change the MAXIMUM ALLOWED CONENT LENGTH to 400000000 bytes it will add a setting to my web.config file
<security>
<requestFiltering allowDoubleEscaping="true" removeServerHeader="true">
<requestLimits maxAllowedContentLength="400000000" />
</requestFiltering>
</security>
In ACF that’s all you need and it works from the IIS side, although I also have to go into the ACF admin…
1 Like
Yes, I restarted and edited the correct file.
As I said I receive this error only when cffile upload is invoked from jquery to a .cfc file, from .cfm file this not happen.
Only in Lucee 6.0.1.83, downgrading to 6.0.585 started working again.
ahh, I’ve not used Jquery for some time, that I can’t help with (Well not extensively and not to anything too complex)
It sounds like jQuery is not the primary issue since it works in Lucee 6.0.585.
I would focus on the difference of .cfc vs .cfm, though it sounds like a new bug or regression in 6.0.1.83 that requires a response from Lucee team.
1 Like