[railo] errors with cffile uploads

20 views
Skip to first unread message

Mike Sprague

unread,
May 19, 2010, 3:03:55 PM5/19/10
to Railo
Hi,

I'm currently adding some upload functionality to an existing form.
Very straight forward stuff and something I've done in the past with
no problem. All of the sudden, I am getting an error on any file
around 1mb or larger where it tells me the field does not exist when
in fact it does, it is a file field and the form does have the correct
enctype (multipart/form-data). Smaller files are working fine
(although I consider 1mb to be a small file and that is not working).

I am using Railo 3.1.2.012 final on a Windows 2008 server and the JRE
Railo is using is 1.6.0_20 (Sun Microsystems Inc.). Has anyone else
run into this and/or have any suggestions? Thanks in advance.

Best regards,

Mike

Kai Weible

unread,
May 19, 2010, 3:10:19 PM5/19/10
to ra...@googlegroups.com
Hi Mike,

i had the same error. The problem is the timeout. Put a higher timeout in
den web-admin (2 Minutes)
and it works.

Greetings Kai

-----Ursprüngliche Nachricht-----
Von: ra...@googlegroups.com [mailto:ra...@googlegroups.com] Im Auftrag von
Mike Sprague
Gesendet: Mittwoch, 19. Mai 2010 21:04
An: Railo
Betreff: [railo] errors with cffile uploads

Mike Sprague

unread,
May 19, 2010, 5:01:37 PM5/19/10
to Railo
Thanks for the reply Kai. I changed my timeout to 5 minutes and I'm
still getting the same failure on a 2mb upload.

This is the error message (and fileData is definitely the file name
and a file field):
form field [fileData] is not a file field

Here is the stack trace as well in case anyone has any more ideas:
form field [fileData] is not a file field at
railo.runtime.tag.FileTag.getFormItem(FileTag.java:827):827 at
railo.runtime.tag.FileTag.actionUpload(FileTag.java:660):660 at
railo.runtime.tag.FileTag.doStartTag(FileTag.java:296):296 at
nsftool.audiovideouploadhandler_cfm$cf.call(C:\Websites\prendismo.com
\nsftool\audioVideoUploadHandler.cfm:7):7 at
railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:674):674
at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:
125):125 at
railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:
23):23 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:
1765):1765 at
railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:
280):280 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:
32):32 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):
717 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290):290 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233):233 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191):191 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128):128 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102):102 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109):109 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
293):293 at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190):
190 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291):291 at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769):769
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
698):698 at org.apache.jk.common.ChannelSocket
$SocketConnection.runIt(ChannelSocket.java:891):891 at
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:690):690 at
java.lang.Thread.run(Thread.java:619):619

Thanks again for any help/insight anyone has regarding these errors.

Mike

Snick

unread,
May 19, 2010, 5:05:24 PM5/19/10
to ra...@googlegroups.com
Hi, I'm not sure what the underlying webserver software is that you are using, but I remember in PHP and I think IIS you have to set the allowable upload size in the settings. 
If you google max upload and your webserver tech it might give you a pointer.

Mike Sprague

unread,
May 19, 2010, 5:22:54 PM5/19/10
to Railo
Thanks for the tip. Just tried that and set it to the max in IIS and
am still having the problem.

We are using Tomcat on top of IIS with the connector. Does anyone know
if there's a Tomcat setting I might need to update as well or have any
other suggestions?

On May 19, 5:05 pm, Snick <sonic....@gmail.com> wrote:
> Hi, I'm not sure what the underlying webserver software is that you are
> using, but I remember in PHP and I think IIS you have to set the allowable
> upload size in the settings.
> If you google max upload and your webserver tech it might give you a
> pointer.
>

rex

unread,
May 19, 2010, 5:33:47 PM5/19/10
to ra...@googlegroups.com
If you raised the timeout and now the file limit rose up to 2MB instead
of your 1MB, then I agree with Kai, it's the timeout.

On my local development environment, I'm not having issues with railo.
Try it locally, and see if you still get the error. That way, you
eliminate the factor of bandwidth and upload speeds/timeouts.

Mike Sprague

unread,
May 20, 2010, 7:49:35 AM5/20/10
to Railo
As it turns out, it's actually still failing on just about anything
over 1mb still.

The same code is working on the same version of Railo on my local
machine with the same version JRE.

Thanks for everyone's input so far. Any other suggestions or should I
be looking at paid support for this one?
Reply all
Reply to author
Forward
0 new messages