Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86189

QHttpMultiPart request will freeze the application if file has been previously read from

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.0
    • Network: HTTP
    • None
    • Windows

    Description

      Making a POST request using QHttpMultiPart, if the file has been previously read from(e.g. using QFile::readAll), it will end up in an infinite loop.

      There is a workaround, by not reading the contents of the file, or by calling QFile::seek(0) before submitting the request.

       

      Might be related to : QTBUG-58360

      Attachments

        1. main.cpp
          2 kB
        2. multipart_test.pro
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            sorel.pop Sorel Pop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes