JakeHartnell / react-images-upload

React input file component with images preview
https://jakehartnell.github.io/react-images-upload/
MIT License
347 stars 154 forks source link

dont convert to FileReader #10

Open elhampour opened 6 years ago

elhampour commented 6 years ago

i want to upload the uploaded image to server, but your component convert it to base 64. can you help me ?

joshuaai commented 6 years ago

This must have been fixed as currently, the onChange method returns the actual FileList, not the Base 64 version.

Hi @IvanLinos we can update the README to show how to convert the FileList that is returned by onChange to base 64 for those who want to do direct upload.

ivnnv commented 6 years ago

@joshuaai feel free to make a PR ;)

nguyenvanphuc2203 commented 6 years ago

how to convert filelist to base64 ?

donalmurtagh commented 6 years ago

@JakeHartnell currently the component returns both the list of files and their base64 encoding, so I think this should be closed.