adrianhajdin / healthcare

Build a healthcare platform that streamlines patient registration, appointment scheduling, and medical records, and learn to implement complex forms and SMS notifications.
https://jsmastery.pro
1.81k stars 432 forks source link

fromBlob is undefined #23

Open ashdib opened 1 month ago

ashdib commented 1 month ago

Change the fromBlob to fromBuffer

if (identificationDocument) { const inputFile = identificationDocument && InputFile.fromBlob( identificationDocument?.get("blobFile") as Blob, identificationDocument?.get("fileName") as string );

MuhamedGamall commented 1 month ago

change your "node-appwrite" version and add this version "node-appwrite": "^12.0.1", Then add this InputFile.fromBlob() instead of InputFile.fromBuffer()