File size is different after using handlePastedFiles
#1685 opened on Mar 9, 2018
Description
bug*
What is the current behavior?
The size of the file it is much bigger than original after passing it with the handlePastedFiles prop function
Ex: before size is 3.6 MB, after size is 25(+something) MB
JSFiddle working example https://jsfiddle.net/m6z0xn4r/530/
What is the expected behavior? To return the exact same file.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
DraftJs - 0.10.4 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
Extra info The size of the files is decreased in Firefox, its as it is in Safari and in Chrome and Opera it increases a lot.
The left side is after passing the file through handlePastedFiles and downloading and one on the left is the original.
