The ServletFileUpload class has disappeared from version tomcat-embed-core-10.1.0 and following

975 views Asked by At

org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload class has disappeared from version tomcat-embed-core-10.1.0 and following (This class is present in version 10.0.27), while the others (Commons FileUpload) seem to be present. In addition, the embedded version number of Commons FileUpload is no longer shown.

enter image description hereenter image description hereenter image description hereenter image description here

I want to upgrade from tomcat-embed-core-10.0.27.jar to tomcat-embed-core-10.1.2.jar

EDIT #1

Is it normal that the file is no longer present?

EDIT #2

Thanks for your answer. Yes, you are right "Yes, it's normal that a new version of a software changes, removes, renames any of its implementation." the problem in this case, is that the comments in the file "org.apache.tomcat.util.http.fileupload.servlet.package-info.class" of tomcat-embedded-core versions > 10.0.27 mentions a typical use case that refers to an absent class. (CF below)

enter image description here

So I wonder, if the absence of this class (org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload) is not a bug?

2

There are 2 answers

0
Shakirov Ramil On

what about org.apache.commons.fileupload.servlet.ServletFileUpload

0
user667522 On

It would have preferable if they had deprecated it first with a note to use @MultipartConfig