Edge/IE11 doesn't contain information about copied image into clipboard

By design Issue #15823907


Feb 6, 2018
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
  • Safari
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

IE11 and Edge are not supporting copying and pasting files from clipboardData - an object is not populated with files from a clipboard.

  1. Visit this codepen
  2. Copy an image from file system to clipboard.
  3. Check Images count value.


Images count: 1


For IE11: nothing - when you pasting image from clipboard using IE11 paste event is not even called.
For Edge: Images count: 0


1 attachment

Comments and activity

  • Between steps 2 and 3 should be - Paste image from clipboard to contenteditable field.

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Hi Jacek,

    Thank you for the update.  I was just looking at that.  I noticed that the repro will accept the image no matter where it is pasted but will not display it unless the content editable div is selected.

    One item I noticed already is that the using a “blocked” image will give the results you are seeing.  When I “unblock” the downloaded image (right click image and select unblock), that the count does change to 1, however, the image is not displayed even if the content editable div is selected.

    I also notice that it appears the issue here is related to script security.  I will look into this a bit more and let you know.

    Appreciate the fun submission.  :-)


  • Correction.  The file being blocked or not does not make a difference,  I confused using an online image versus an image on my local machine as mentioned in your repro steps.

    I am going to create a non-iframe version of this repro due to the iframe security warnings I am seeing in Edge.  The iframe is from codepen.io’s framework.


  • Will you provide the extended version of Windows 10 you are using?  Win + S and type “winver” and hit enter.

  • I am not able to reproduce this issue.  I tested in 16299.192 and a current developer release.  I believe this issue may have been corrected in release after the one you are using?

  • Microsoft Edge Team

    Changed Status to “Fixed”

  • Changed Status from “Fixed”

  • Hello,
    thank you for your fast response.

    I’m using Windows 10 OS Build: 16299.192 and it doesn’t matter if I’m using codepen with iframe or simple .txt file. I can still reproduce the issue.

    You can just save this html to plain text file with .html extension and open it with Edge:

    Images count:

    When I’m pasting image from file explorer (not online) I’m getting Images count: 0 result. And as you can see in the javascript code it should be 1 if DataTransfer object would be supported. I don’t have this issue on different browsers like Firefox (Windows, Unix) or Chrome (only Unix).

  • Looks like it’s something wrong with MD processing. I’m pasting html content without MD, I believe you are escaping HTML :)

    Images count:

  • Still it’s parsed in some way, but you could just create html file from codepen example.

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

  • Hello,

    Thank you for providing this information about the issue.

    The reason you are seeing “Images count: 0” is because any image copied from File Explorer and pasted into your contentEditable Div has items.length == 0 (but an image copied in the browser has items.length == 2). This causes the entire for
    loop to be skipped, so the var count
    remains 0 as defined earlier in the code.

    This might not be an Edge issue, as I am seeing the same behavior in Chrome and Firefox on Windows OS. This might be a Windows issue.

    I will run tests on different OS’s and see what happens. Meanwhile, do let me know if you have any new insights on the problem.

    Best Wishes,
    The MS Edge Team

  • As I checked it works fine with Firefox on Windows. For OSX Chrome, Firefox and Safari ( (since Safari Tech Preview) it’s working as expected.

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Status from “Confirmed” to “By design”

You need to sign in to your Microsoft account to add a comment.

Sign in