Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2767

dropupload problems with native drop after first upload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Later Later
    • 7.0.6
    • 7.0.5.2
    • Components
    • Security Level: Jimmy
    • verified on chrome

      running the example below
      dragging some text (not a file) over a drop upload component initially ignores the dragged text
      -> OK
      then dropping a real file triggers the onUpload event as usual
      -> OK
      again dragging some text causes an onUpload event resulting in a NPE on the server
      -> not expected

      http://screencast.com/t/MAwzVhvYn3

      Expected results:
      A) the onUpload event should only be triggered for really uploaded Files -> dragging/dropping just text should be ignored (most important)

      B) when not dragging a file the droptarget should not be highlighted at all (nice to have)
      e.g. gmail only creates a highlight when a File is dragged over a new mail, just dragging text does not indicate a possible drop target

      <zk>
          <vlayout>
              <image id="img" />
              Upload your hot shot:
              <dropupload maxsize="-1" content="content" detection="browser" onUpload="img.setContent(event.media);" />
          </vlayout>
      </zk>
      

            jumperchen jumperchen
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m