Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13514

Support file upload progress tracking in Servlets >= 3.0 environment

    Details

    • Sprint:
      4.5.0.Alpha3 - Sprint 2

      Description

      We currently support two approaches for file upload:

      • Servlets 2.5: own request form data parser MultipartRequestParser
      • Servlets 3.0: leveraging HttpServletRequest#getParts()

      However as we have discussed RF-13444, we had to finally do a trade-off of limiting support of file progress tracking. I.e. in Servlets 3.0 we have no simple way how to track file upload progress since getParts() returns data for completed request.

      There are several possible outcomes:

      1) drop server-side file upload progress tracking and leverage XHR2/HTML5 that has built-in ability to track progress

      2) use a ServletFilter to wrap a request as our FileUploadFacesContextFactory currently do and so have an earlier access to the request object

      • this principle has a drawback - we have to ensure our filter has high-enough priority so the servlet container won't touch the request body yet

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                lfryc Lukáš Fryč
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified