valor-software / ng2-file-upload

Easy to use Angular components for files upload
http://valor-software.github.io/ng2-file-upload/
MIT License
1.91k stars 662 forks source link

Rawfile in file-like-object type is string, when it should be File #1049

Open sflang1 opened 6 years ago

sflang1 commented 6 years ago

Good afternoon!

First of all, I'd like to thank you for the nice library, it is very useful and configurable. Second, I would like to ask you if it is possible to change the type of the propery rawfile in the file-like-object class to File. I'm testing on my own and using the FileReader Javascript interface, and in my debugger, whenever I ask for the rawfile, returns an instance of File, instead of a String. Would this change be possible? Or it would greatly affect the functionality?

Thanks a lot for your attention,

konstantincherniak commented 6 years ago

Same issue