dave
05/17/2023, 8:07 PMsathoro
05/17/2023, 8:07 PMdave
05/17/2023, 8:07 PMsathoro
05/17/2023, 8:08 PMdave
05/17/2023, 8:08 PMdave
05/17/2023, 8:09 PMdave
05/17/2023, 8:11 PMdave
05/17/2023, 8:11 PMDorian
05/17/2023, 8:53 PMUnsmart | Tech debt
05/17/2023, 8:55 PMDorian
05/17/2023, 8:57 PMDorian
05/17/2023, 8:58 PMspence
05/17/2023, 9:16 PMhttps://cdn.discordapp.com/attachments/779390076219686943/1108503437349507172/Screenshot_2023-05-17_at_11.16.15_PM.pngâ–¾
Walshy | Pages
05/17/2023, 9:18 PMWalshy | Pages
05/17/2023, 9:18 PMspence
05/17/2023, 9:18 PMnora
05/17/2023, 9:26 PMnora
05/17/2023, 9:29 PMnora
05/17/2023, 9:29 PM--form 'url='
, you use the --form 'file='
examplenora
05/17/2023, 9:34 PMjs
export async function uploadImage(name: string, base64Image: string, url: string) {
const mimeType = "image/png";
const buffer = Buffer.from(base64Image.split(';base64,')[1], 'base64');
const uint8Array = new Uint8Array(buffer);
const blob = new Blob([ uint8Array ], { type: mimeType });
const body = new FormData();
body.append("file", blob, name);
const response = await fetch(url, {
method: "POST",
body
});
const content = await response.json();
return content;
};
lgraz
05/17/2023, 9:40 PMdave
05/17/2023, 10:58 PM[placement.production]
mode = "smart"
✘ [ERROR] Processing wrangler.toml configuration:
- "placement.mode" is a required field.
dave
05/17/2023, 10:58 PMdave
05/17/2023, 10:59 PMUnsmart | Tech debt
05/17/2023, 10:59 PM[placement]
mode = "smart"
dave
05/17/2023, 10:59 PMUnsmart | Tech debt
05/17/2023, 10:59 PM[env.production.placement]
mode = "smart"
dave
05/17/2023, 10:59 PMShayan
05/17/2023, 11:09 PMnot found / 404
for the past hour or so.Shayan
05/17/2023, 11:10 PM