On the client
If you want to upload files in conjunction with Commons HttpClient, this introductory article tells how to use FileUpload in conjunction with the Commons HttpClient package.
do you really want to upload a file into the web app? Really? What happens when you have to redeploy and update?