This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git


The following commit(s) were added to refs/heads/master by this push:
     new 263bb03a (doc) Fix instantiation of DiskFileItemFactory in migration 
guide (#273)
263bb03a is described below

commit 263bb03a0ee175e980a8ea5ee6ef628cfbc033bc
Author: Gregor Dschung <gre...@chkpnt.de>
AuthorDate: Thu Feb 8 14:46:34 2024 +0100

    (doc) Fix instantiation of DiskFileItemFactory in migration guide (#273)
    
    DiskFileItemFactory has a private constructor.
---
 src/site/apt/migration.apt.vm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/site/apt/migration.apt.vm b/src/site/apt/migration.apt.vm
index 316cfc23..f6c1a7bf 100644
--- a/src/site/apt/migration.apt.vm
+++ b/src/site/apt/migration.apt.vm
@@ -160,7 +160,7 @@ Migrating
            @Override
            protected void doPost(HttpServletRequest req, HttpServletResponse 
resp) throws ServletException, IOException {
                    if (JakartaServletFileUpload.isMultipartContent(req)) {
-                           final DiskFileItemFactory fileItemfactory = new 
DiskFileItemFactory();
+                           final DiskFileItemFactory fileItemfactory = 
DiskFileItemFactory.builder().get();
                            final JakartaServletFileUpload fileUpload = new 
JakartaServletFileUpload(fileItemfactory);
                            final List<FileItem> items;
                            try {

Reply via email to