Has anyone else had an intermittent issue with Lucee and file uploads?
Basically what is happening is every now and again I’m getting an error
from the upload code saying the form field the file is contained within
doesn’t exist within the form structure. The field is 100% in the form from
which it is being submitted and all other environment variables suggest the
form field should exist, for example:
The form only has this one file, it is an image upload form, but for some
reason, from time to time, Lucee seems to think it is not there and throws
an exception. I’ve tried various things to isolate the issue without
success, there is no correlation to browser, etc… either.
Anyone else seen this behaviour or have any idea what might be causing it?
Could it be some sort of timeout on the browser side or something? It’s all
very odd.
Can you try/catch it and put in some debugging that sends you the form
scope and output of getHttpRequestData()?
Thanks!
~BradOn Saturday, August 15, 2015 at 5:57:30 AM UTC-5, Andrew Dixon wrote:
Hi All,
Has anyone else had an intermittent issue with Lucee and file uploads?
Basically what is happening is every now and again I’m getting an error
from the upload code saying the form field the file is contained within
doesn’t exist within the form structure. The field is 100% in the form from
which it is being submitted and all other environment variables suggest the
form field should exist, for example:
The form only has this one file, it is an image upload form, but for some
reason, from time to time, Lucee seems to think it is not there and throws
an exception. I’ve tried various things to isolate the issue without
success, there is no correlation to browser, etc… either.
Anyone else seen this behaviour or have any idea what might be causing it?
Could it be some sort of timeout on the browser side or something? It’s all
very odd.
I’ve seen that happening behind ngnix.
Can’t remember exactly what fixed it, but it had to do something by setting
some kind of buffer size.
Let me know if you’re behind a ngnix server too and I’ll check my notes on
it later this weekend.
MikeOn Saturday, August 15, 2015, Andrew Dixon <@Andrew_Dixon> wrote:
Hi All,
Has anyone else had an intermittent issue with Lucee and file uploads?
Basically what is happening is every now and again I’m getting an error
from the upload code saying the form field the file is contained within
doesn’t exist within the form structure. The field is 100% in the form from
which it is being submitted and all other environment variables suggest the
form field should exist, for example:
The form only has this one file, it is an image upload form, but for some
reason, from time to time, Lucee seems to think it is not there and throws
an exception. I’ve tried various things to isolate the issue without
success, there is no correlation to browser, etc… either.
Anyone else seen this behaviour or have any idea what might be causing it?
Could it be some sort of timeout on the browser side or something? It’s all
very odd.