Closed tomeczekstecc closed 4 years ago
I suspect the fileEncoded variable contains the fileItem object but the file hasn't been encoded yet.
I'd try this with the onaddfile
or onpreparefile
callback.
Your answear was clear, Your answear was fast, Your answear was Correct!! Thank You!!!
Hi. I really hate when I can't use such awsome library. Its raelly graet!!! Thanks guys.
But lately I stuck ror 3 days...
I use getFileEncodeBase64String method on file item in react's file pond library, I get the result (proper Base64 string) and then the app crashes with warnings:
and as a handler:
const onFileChange = fileEncoded => { if ( fileEncoded === null || fileEncoded === undefined || fileEncoded === '' || fileEncoded === {} ) { console.log('!!!'); } else { console.log(fileEncoded.getFileEncodeBase64String()); } };
There is a valid Base64String in a console but app breaks.
Any ideas?