Samagra-Anamaya / frontend

https://workflow-wrapper-omega.vercel.app
0 stars 0 forks source link

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

Open amit-s19 opened 9 months ago

amit-s19 commented 9 months ago

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 commented 9 months ago

Not received this error since https://github.com/Samagra-Anamaya/frontend/pull/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.