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

qt 5.7 beta can't drag and drop files to web pages in webengine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.0 RC
    • 5.7.0 Beta
    • WebEngine
    • None
    • win10, 5.7 beta, WebEngine Demo Browser Example
    • 3407b0a8545d84df4b941a5a3f5a5859dc51cd53

    Description

      ========== Update ==========
      I make some special test for this today. Even if I check this type, it still cause error. Because the datatransfer.items have two items, the datatransfer.files have only one item, fox example: I drag one image to webpage, it check first item and skip it, then it's over because of datatransfer.files have only one item. so webpage can't get this file. that's so weird. you can check this 4.png attachment.

      ========== Origin ===========
      There are two items "datatransferitem" when only drop one image file to webpage. if I don't check kind of file that will cause null error when invoke directly item.webkitGetAsEntry().isDirectory property.

      It's only one item and work fine in chromium. In github there are many js components not check these files type, therefore, I think you should fix this problem as soon as possible, or else 5.7 drag and drop feature will face many compatibility issues, that's so terrible if occur.

      There is other problem also prevent drag and drop file to webpage, I don't know if qtwebengine occur this error, but in chromium it's work fine.

      following is my test website and image of error info:

      https://html5-demos.appspot.com/static/dnd/all_types_of_import.html

      Attachments

        1. 1.png
          1.png
          64 kB
        2. 3.png
          3.png
          95 kB
        3. 4.png
          4.png
          110 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            vidarxu Carter Davies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes