Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtHttpServer: how to accept form data?
Forum Updated to NodeBB v4.3 + New Features

QtHttpServer: how to accept form data?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 212 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • krzaqK Offline
    krzaqK Offline
    krzaq
    wrote on last edited by
    #1

    I can't find anything in the sources to indicate the support of form data, but that limitation is not listed in the docs, so I'm holding on to hope. Do I need to look for workarounds to upload files to my server?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You write a request handler that expects a POST with a multipart data (multipart/form-data) payload , connect it to a route, and act accordingly. QHttpMultiPart can help with dealing with the payload.

      1 Reply Last reply
      1
      • krzaqK Offline
        krzaqK Offline
        krzaq
        wrote on last edited by
        #3

        From the API of this class I would assume it is only used to create multipart payloads, but does not parse them. That being said, the payload is available in the request body(), so I could write my own parser. Thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved