Upload file from command line client

asked 2011-06-26 02:26:14 +0800

mityh gravatar image mityh

updated 2011-06-26 02:36:59 +0800

I need upload some files by the curl command line tool.
with other frameworks, such as struts, i can do with:
curl --form upload=@localfilename --form press=OK URL
where URL take the form of: http://myserver/my_upload_action
but with zk, I have no idea how to write the URL part?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-06-26 03:49:13 +0800

mjablonski gravatar image mjablonski
1284 3 5

I'm using a custom servlet or a JSP to handle the file upload for command line tools. This is far easier than to try to convince an Ajax-Framework to interact with a command line utility like curl.

Cheers, Maik

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2011-06-26 02:26:14 +0800

Seen: 199 times

Last updated: Jun 26 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More