• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

upload files to http post request

 
Jiten Kothari
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,
I am trying to upload all the files at once through http post request. Previously it passing the document one by one and I need to pass all at once.
this is what I wrote the code so but I am getting error groovy cast exception error which I wrote on comment.
any help will be appreciated.

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't tell us what isn't working but you're making this way to hard on yourself. Check out this blog:

http://blog.robert.freudenreich.eu/grails-handling-multi-file-parameters
 
Jiten Kothari
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the solution to the problem. I wanted to add more then one file to multi part entity and then submit group of files at same time to http post request.
Thanks for the help


here is the solution code

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic