This document shows how to upload a photo by using Struts2 action. Things to note:
The HTML form must have
enctype="multipart/form-data" method="POST"
Your S2 Action must have the attributes to receive the raw file and the file name. The raw file attibute name is the same you created in HTML form and the file name attribute is that name plus "FileName" word.
<input name="myPhoto" type="file" >
private File myPhoto;
private String myPhotoFileName;
Just create a File "destiny" to desired path and copy "myPhoto" to "destiny".
Piece of cake.