On 7/31/09, Steve Wells <[email protected]> wrote:

> Bob, thanks.  My first test using your code worked, debugger tripped over
> "getFileItem().get();" and the values were inserted into DB.  So from that I
> could sure apply the mime type, file size logic validations.  When would
> "getFileItem()" not be null?

Field values are bound from the Field onProcess event. onProcess
delegates to bindRequestValue to set the Field value from the request
parameter.

So the fileItem will be set depending on whether a file was uploaded
or not. If no file
was uploaded during the Form submit, getFileItem() would return null.

kind regards

bob

Reply via email to