Exposing the vanilla File object in FileItem? #429
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I'm trying to use this upload module, and before hitting the upload button, I want to see what's actually in the file. After playing around with it for a while, I found I can use the built-in FileReader#readAsText to read the
FileItem._fileobject to get the content of the file. However, I feel it kind of hack, because I thought fields beginning with_are supposed to be private. Therefore I'm wondering whether there is any plan to expose that vanilla file object more formally, or even better, to expose some new API wrapping the FileReader?