In this Struts 2 file upload tutorial we will show you how easy it is to take a local file and upload it to a remote Java application server. This Struts file upload example requires nothing more than simple HTML to work, so it will be supported by any modern browser. And other than including a couple of Maven dependencies, there is very little configuration required to get this Struts file upload example to work. We even throw in a directory listing capability to round out the use case. If you need to get Apache Struts to upload a file to the server, this is the example you need. The API this tutorial uses is Struts 2.5.