Announcement Announcement Module
Collapse
No announcement yet.
How to send and receive text box value send along with multipart form data Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to send and receive text box value send along with multipart form data

    Hi All,

    I will explain my issue to you all to get some idea,

    I want to send some text box data value along with the multipart data(i.e uploaded file ). My question is how we can retrieve those data in server side.

    I have done file uploaded example very successfully, but it sends only multipart data. so how can I send both multipart data and normal text box data and retrieve those data from the server.

    Can anyone help me to solve my problem.

    Thanx in advance.

    Regards,
    Rumesh

  • #2
    Hum... multipart data means "multiparts"! so there is no reason you can't get the seperated parameters along with your file upload.

    If you used Spring MultipartResolver, then you will have instance of MultipartHttpServletRequest. That class have getParameter method that let you retrieve any parameter name you have in a form.

    See
    http://static.springframework.org/sp...tResolver.html

    Comment

    Working...
    X