'URL.createObjectURL does not store the same data from chrome to firefox

I use URL.createObjectURL to store an image File and then get back the image File from the object URL :

console.log(droppedImage);
const objectUrl = URL.createObjectURL(droppedImage);
fetch(objectUrl).then(res => res.blob()).then(console.log);

The result on Firefox is what I want :

Firefox result

But on chrome with the same image :

Chrome result

The file name disapeared and I don't know why...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source