1
0
forked from apxtri/apxtri

add a log to track img bug

This commit is contained in:
philc 2024-09-19 08:52:47 +02:00
parent 3b09756601
commit 84200b70b0

View File

@ -672,6 +672,7 @@ Odmdb.cud = (objectPathname, crud, itm, role, runindex = true) => {
//Manage base64 case image to convert ans store in webp //Manage base64 case image to convert ans store in webp
if (k.includes("imgbase64_") && itmtostore[k] != "") { if (k.includes("imgbase64_") && itmtostore[k] != "") {
fs.ensureDirSync(`${objectPathname}/img/`); fs.ensureDirSync(`${objectPathname}/img/`);
console.log("check this for k:",k," itmtostore[k]:",itmtostore[k])
const imgb64 = itmtostore[k].replace( const imgb64 = itmtostore[k].replace(
/^data:image\/(png|png|gif|bmp|jpg|jpeg);base64,/, /^data:image\/(png|png|gif|bmp|jpg|jpeg);base64,/,
"" ""