Hello everybody!
I need some help urgently...
I am doing an application on JSP and i to do uploads of files to database...
So, when i submit of the form the page gives errors, then it redirect me to a error page where to resolve the rest of the form. So i want to put the path of the file that the user setup in the other page to this one, but for security reasons that's no possible, so how can i do this?
Any ideia?
i try doing a
<input type="text" name="file1_path" value="<%=problema.getFiles("file1")%>" size="100" class="botao1">
<input type="file" name="uploadfile1" style="display: run-in;">
<input type="button" class="botao2" onClick="uploadfile1.click();file1_path.value=uploadfile1.value;" value="Procurar...">
But when i submit i can't have the content of the file inserted....
The form is defined as:
<form action="upload.jsp" method="post" name="form_reg_admin" class="formulario" enctype="multipart/form-data">
Please i need help...