facebookarchive/draft-js

File size is different after using handlePastedFiles

Open

#1,685 建立於 2018年3月9日

在 GitHub 查看
 (0 留言) (5 反應) (0 負責人)JavaScript (22,554 star) (2,646 fork)batch import
bughelp wanted

描述

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.

screen shot 2018-03-09 at 12 17 59 pm

貢獻者指南