<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="s" uri="/struts-tags" %> Upload Demo - Struts2 Demo Lab
Upload demo

Capture file metadata without writing anything to disk

This safer upload sample focuses on how Struts binds multipart form fields. The action records metadata only, which makes the demo easier to run in constrained environments.

What the action collects

Primary filename, content type, and total selected file count.