Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix file paste: cache file info #7156
See #6960. This change is causing errors for me when copy pasting images in Chrome.
How has this been tested?
This seems to solve the problem happening on copy paste. When using drag&drop the images continue to keep their file names. The code becomes better with this changes an awesome advantage of now using createBlobURL instead of createObjectURL.
Thank you a lot for this fix!
I can't recall why the
I tested drag&drop with single & multiple images the names were kept with success.
Copy & paste for image files works great the names are not kept but I think it is not possible to access the original file name during a copy paste.
I think we should add comment in getBlobByURL to specify it only works for blob urls created by createBlobUR. But besides that everything looks good to me.
Nice work, thank you for this PR