Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a Q about the possibility to drop file items when maxSize is exceeded.

...

Add your questions/answers here.

Q: When parsing a multipart request that exceeds the maxSize or if a file exceeds the maxFileSize, is there any way to drop the file/files from the parsing process and still return the field items?BR I though of putting the field items in the query string but haven't tested it. Even if it would work, it wouldn't be a handsome solution!

Wiki Markup
*Q:* I'm using a [DiskFileItemFactory] from [FileUpload] 1.2.1.  In the Resource Cleanup section of \[http://commons.apache.org/fileupload/using.html the User Guide\], the following code is shown:[BR]
        return new [DiskFileItemFactory](fileCleaningTracker,[BR]
                                       [DiskFileItemFactory].DEFAULT_SIZE_THRESHOLD,[BR]
                                       repository);[BR] This method doesn't actually exist (with the implied signature), so instead, I've done the following:[BR]
    [DiskFileItemFactory] factory = new [DiskFileItemFactory]();[BR]
    factory.setFileCleaningTracker(fileCleaningTracker);[BR]

...