When a Multipart request is performed but some of the fields exceed the maxStringLengthย limit, the upload files will remain in struts.multipart.saveDirย even if the request has been denied.
Users are recommended to upgrade to versions Struts 2.5.32 or 6.1.2.2 or Struts 6.3.0.1 or greater, which fixe this issue.