I have an html file field in my form. Basically to obtain input for certain
fields we have given user the option to either upload data through a file or
input it manually. Now I haven't set the enctype of the form in html form
tag but i set it using javascript whenever file input is selected.

But this doesn't work. It works only if i write <html:form action="/create"
enctype="multipart/form-data">

The reason why I want to set it using javascript is because in case the
manual input is large (about 400-500 values using indexed properties), my
application throws out of memory exception.

Any clues??


--
Puneet

Reply via email to