Saving file names to mysql database and files to a folder using jsp multipartrequest

269 Views Asked by At
<form enctype='multipart/form-data' method='POST' action='submit.jsp'> 
<input type='file' name='files[]' multiple />
<button type='submit'>Submit</button>
I have written this code in my IDE . Then ,on submit page , I am trying to access the multiple files uploaded in the form ..they are saved in the folder easily with multipartrequest object but when I am trying to save their names to database ,only last file name is saved.. I am not getting the code to extract all the file names and save them to a database.
0

There are 0 best solutions below