Uploaded image for project: 'HttpComponents HttpAsyncClient'
  1. HttpComponents HttpAsyncClient
  2. HTTPASYNC-163

Unable to upload MultipartFormEntity larger than 25 kb

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • 4.1.4
    • None
    • None

    Description

      From investigation, this appears to be caused by a specific check in the code. I filed a bug because it's unclear why there is a 25 kb limit using `getContent`.

      The non-async client consumes the Entity by calling `writeTo` which does not have this 25kb restriction.

      See https://github.com/apache/httpcomponents-client/blob/4.5.x/httpmime/src/main/java/org/apache/http/entity/mime/MultipartFormEntity.java#L102-L104

       

      This issue was identified in clj-http. See https://github.com/dakrone/clj-http/issues/560

      Attachments

        Activity

          People

            Unassigned Unassigned
            rymndhng Raymond Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: