Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. How to attach a file when clicking on a button unsing QtWebEngine
Forum Updated to NodeBB v4.3 + New Features

How to attach a file when clicking on a button unsing QtWebEngine

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 348 Views 2 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.
  • K Offline
    K Offline
    KLAI
    wrote on last edited by
    #1

    Hi all,

    I want to know if there is way to attach file automatically to a website using QtWebEngine.
    In fact, I have to upload a file into a website when clicking on "upload button".
    I can emulate the button click, but I don't know how to attach the file.

    Thank you for your helps!

    93f8d0b7-d534-4ecd-a560-bf4626bd1035-image.png

    raven-worxR 1 Reply Last reply
    0
    • K KLAI

      Hi all,

      I want to know if there is way to attach file automatically to a website using QtWebEngine.
      In fact, I have to upload a file into a website when clicking on "upload button".
      I can emulate the button click, but I don't know how to attach the file.

      Thank you for your helps!

      93f8d0b7-d534-4ecd-a560-bf4626bd1035-image.png

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

      @KLAI
      thats not possible for a reason!
      consider the security impact.

      Anyway you can emulate the form upload with an HTTP request. Depending if there are any other security/login mechanisms involved?

      Anyway if you really want you could intercept the FileDialog request (QML/C++), but anyway you can only return the path to the file.

      --- 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
      1

      • Login

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