Hi All, I am using <html:file property="theFile"> in jsp page from there i am uploading the image.in the actionform i have FormFile theFile.when i submit the jsp page the filepath is vanishing how to render that file path in the <html;file>.
I'm afraid you can't specifiy a pre-loaded value in this field. Neither Internet Explorer nor Firefox browsers will accept any server-side value in a file upload input control. It's a security issue.
I am storing the path in a hiden field.is there any way of converting that to FormFile object.
Thanks & Regards,
Venkateshwar Rao Ravula
posted 13 years ago
Originally posted by venkateshwar rao ravula: I am storing the path in a hiden field.is there any way of converting that to FormFile object.
No, I don't think so. The FormFile object has to contain the entire uploaded file, not just its path.
If you absolutely, positively have to get past this restriction, you might want to consider creating a signed applet to do your upload. With a signed applet, you can do pretty much whatever you want as far a defaults, remembering the last upload, etc.