Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Upload file to website . i need a sample

Upload file to website . i need a sample

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 4 Posters 1.6k Views 3 Watching
  • 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.
  • Mehmet AKM Offline
    Mehmet AKM Offline
    Mehmet AK
    wrote on last edited by
    #1

    Hi Guys !

    i need to upload a file to website . is there a sample about this ?

    the_T 1 Reply Last reply
    0
    • Mehmet AKM Mehmet AK

      Hi Guys !

      i need to upload a file to website . is there a sample about this ?

      the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      @Mehmet-AK
      what upload methods are allowed on the server?
      if it's ftp then you can use qnetworkaccessmamager. for other methods you may need third-party libraries.

      -- No support in PM --

      1 Reply Last reply
      0
      • Mehmet AKM Offline
        Mehmet AKM Offline
        Mehmet AK
        wrote on last edited by
        #3

        hi the_ . i want to use POST method to upload file .

        raven-worxR 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Then as @the_ suggested: QNetworkAccessManager::post.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3
          • Mehmet AKM Mehmet AK

            hi the_ . i want to use POST method to upload file .

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @Mehmet-AK
            when talking about uploading a file to a website do you mean to do so like you would have done it from a website directly?
            In that case you need to use QHttpMultiPart classes to create a request and QNetworkAccessManager to post this request.
            See this example.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            4
            • Mehmet AKM Offline
              Mehmet AKM Offline
              Mehmet AK
              wrote on last edited by
              #6

              thx raven i 'll try it

              1 Reply Last reply
              0
              • Mehmet AKM Offline
                Mehmet AKM Offline
                Mehmet AK
                wrote on last edited by
                #7

                thx sgaist . i'll try it

                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