Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] The file given is not an instance of Blob or File #96

Open
amit-s19 opened this issue Feb 6, 2024 · 1 comment
Open

[Fix] The file given is not an instance of Blob or File #96

amit-s19 opened this issue Feb 6, 2024 · 1 comment
Assignees

Comments

@amit-s19
Copy link
Contributor

amit-s19 commented Feb 6, 2024

Environment: production
Application: Stride App
Error occurred while processing request:

{
"gpId": "gp_121223",
"timestamp": 1707112111158,
"error": "The file given is not an instance of Blob or File"
}

Need to R&D on this error when adding/saving a file in form

@amit-s19 amit-s19 self-assigned this Feb 9, 2024
@amit-s19
Copy link
Contributor Author

amit-s19 commented Feb 9, 2024

Not received this error since #108
I suspect that this error occured due to failure of imageCompress method which was used from browser-image-compression which somehow corrupted the passed file as it's a reference passed down. Hence the file remained an instanceOf Blob but it got corrupted or something which resulted in a faliure to write in the indexDB using Localforage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant