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

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.0
    • Fix Version/s: None
    • Component/s: Network: HTTP
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            manordheim Mårten Nordheim
            Reporter:
            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