diggy diggy hole
•4/1/24, 5:31 PM
await-ing the call thoughawait fixed it. Weird that it was working locally tho. Thanks for your help!




walterwick.de A @1.1.1.1 +noall +answerNAME | TTL | DATA
--------------+------+---------------
walterwick.de | 284s | 172.67.180.219
walterwick.de | 284s | 104.21.83.189 app.post("/image", async (c) => {
const {file}: {file: File} = await c.req.parseBody();
if (!file) return c.json({ msg: "Invalid request" }, 400);
const body = await file.arrayBuffer()
const id = nanoid()
console.log(id, body);
c.env.BUCKET.put(id + ".bmp", body);
return c.json({id}, 200)
});.put()https://azure-di-source-files.enam.ai.moda/83d6300e2bb85d71b49bedd61f19fc37?cache-control=private%2C+immutable%2C+no-transform%2C+max-age=31536000%2C+stale-while-revalidate=31536000%2C+stale-if-error=31536000%2C+s-maxage=0&expires=Thu%2C+01+Jan+1970+00:00:00+GMT&ttl=604800&verify=1711929600-AXsEtplmiIONuUwUTfXh%2BVbEtqDo4rE0kPjgyN37j6w=