mycatisred
05/30/2022, 7:29 AMjs
router.post('/test', async (req, res) => {
const { files } = req;
const { data, error } = await supabase.storage
.from('avatars')
.upload('acara/test.html', files)
console.log(data);
console.log(error);
});
Needle
05/30/2022, 7:29 AMNeedle
05/30/2022, 7:30 AMAlbert [tox/cis]
05/30/2022, 1:17 PMreq
is not the file itself. Maybe this can help you a bit further http://expressjs.com/en/resources/middleware/multer.htmlNeedle
05/30/2022, 1:17 PMmycatisred
05/30/2022, 2:36 PMNeedle
05/30/2022, 2:36 PM