File Missing In Filesystem, Catch On Form Submit
I have a form that I am submitting via jQuery's ajaxSubmit() function. This form includes a file control, and it has been raised as a possible point of failure that if the file sel
Solution 1:
You can always use the Struts2 validation framework to validate the file object.
Apply fileUpload
interceptor to your action that sets the File
object to your action when you submit the form.
Once you get the object and it's not null
you may proceed with some kind of validations. For example file.exists()
.
Post a Comment for "File Missing In Filesystem, Catch On Form Submit"