Blob not showing on chrome (works with Safari)

时间:2018-12-09 09:10:24

标签: jquery google-chrome blob

I have created an image preview using jquery

    $('#urlNF').change( function(event) {
      var imgURL = $("#urlNF").val();
      $("#editNFPicture").removeClass('hidden');
      $("#editNFPicture").attr("src", imgURL);
    });

The preview works fine in Safari but in Chrome even though the src contains the blob I see only this : enter image description here

PS:如果我在新标签页中打开图像,则它可以正常工作/可以看到该图像。

有什么想法为什么预览图像不起作用?

谢谢。

0 个答案:

没有答案