Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-204

FileItem.getHeaders() returns always null.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 1.3
    • None
    • FileItem.getHeaders() returns always null.

      See below description.

    Description

      FileUploadBase.java
      1016:              currentItem = new FileItemStreamImpl(fileName,
      1017:                      fieldName, headers.getHeader(CONTENT_TYPE),
      1018:                      fileName == null, getContentLength(headers));
                         currentItem.setHeaders(headers); // To fix this bug.
      1019:              notifier.noteItem();
      
      1026:              currentItem = new FileItemStreamImpl(fileName,
      1027:                      currentFieldName,
      1028:                      headers.getHeader(CONTENT_TYPE),
      1029:                      false, getContentLength(headers));
                         currentItem.setHeaders(headers); // Here too.
      1030:              notifier.noteItem();
      

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            evanescent Hakju Oh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: