You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for creating this library. I like how clear is to use it to test upload file functionality.
I took the library to test uploading a JSON file, read the content in the file, set the state and display file content on the layout. I found while using this library, a JSON file uploads, FileReader executes, but the result returns [objectObject] instead of an expected string.
When I upload a file in the real app the FileReader result correctly contains a string which is a content of the uploaded file.
I'm not sure if there is a bug in the library or I missed something in my implementation which can be seen below.
Hi @marekdano!
Thanks for submitting the issue. I am really happy small community around the plugin now helps each other resolving such tricks.
This thing may be not obvious for other users as well so I intend to put this to README.md#Caveats section.
Current behavior:
Desired behavior:
Thanks for creating this library. I like how clear is to use it to test upload file functionality.
I took the library to test uploading a JSON file, read the content in the file, set the state and display file content on the layout. I found while using this library, a JSON file uploads, FileReader executes, but the result returns [objectObject] instead of an expected string.
When I upload a file in the real app the FileReader result correctly contains a string which is a content of the uploaded file.
I'm not sure if there is a bug in the library or I missed something in my implementation which can be seen below.
Steps to reproduce: (app code and test code)
Please find the code that I use:
// implementation of file input
// implementation of handleUploadFile
// test
Versions
The text was updated successfully, but these errors were encountered: