This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

request.getParameter() not working in MULTIPART  RSS feed

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,
I'm developing a Human Resource Management Program. I have to upload the photo of the Employee along with the employee id

In the jsp page i have the following


and I got a piece of code for uploading files to the Server
upload_image.jsp


The uploads works perfectly, and save it in the server without any problem. But I want this code to insert in a database with the employee id and image_path and image_name

Please help me Ranchers to sort this out

Thanks/Regards

Aravind Prasad
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right.

request.getParameter doesn't work with multipart uploads.
You'll need to check the documentation for the upload library you're using to find out how to retrieve form parameters.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!