On 24/05/2021 14:22, Scott,Tim wrote:
Hi Mark,
From: Mark Thomas wrote:
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.fileupload.servlet.ServletRequestContext;
You are using Commons FileUpload so this issue needs to be raised with
the Apache Commons project.
Alternatively, in Tomcat 9 file upload support is available via the
Servlet API. You could try switching to that (and any bugs would then be
a Tomcat issue).
I replaced "org.apache.commons.fileupload." with
"org.apache.tomcat.util.http.fileupload." and tried again.
I found no change in behaviour: Leaving file.encoding to default to UTF-8 still
corrupted the content. Setting it to ISO-8859-1 again resolved it.
Was that the Servlet API you were meaning?
No. You should be able to use HttpServletRequest.getPart()
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org