aspose file tools
The moose likes Groovy and the fly likes upload files to http post request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Languages » Groovy
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: upload files to http post request
 
Similar Threads
store multiple files in memory instead of disk
Multi display Applet
Print to Image
How to open all the downloading douments in browser
file download from JSP