pt., 30 gru 2022 o 10:06 Greg Huber <gregh3...@gmail.com> napisał(a):
>
> Also need an extra check || "".equals(part.getSubmittedFileName()
>
> for (Part part : parts) {
>              if (part.getSubmittedFileName() == null ||
> "".equals(part.getSubmittedFileName()) ) { // normal field

Empty getSubmittedFileName() means the file was uploaded but with
empty "filename" attribue in the Content-Disposition header
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#as_a_header_for_a_multipart_body


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to