This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Groovy and the fly likes upload files to http post request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "upload files to http post request" Watch "upload files to http post request" New topic
Author

upload files to http post request

Jiten Kothari
Greenhorn

Joined: Apr 08, 2010
Posts: 8
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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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


GenRocket - Experts at Building Test Data
Jiten Kothari
Greenhorn

Joined: Apr 08, 2010
Posts: 8
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: upload files to http post request