0

I am trying to download a .png I have stored in my Supabase database using a javascript script. I have read the documentation and used the code snippet they provided but https://supabase.com/docs/reference/javascript/storage-from-download#notes

What gets returned in my console is the followingenter image description here

require('dotenv').config({ path: '../.env' });
const { supabaseClient } = require('./supabaseClient.js');
bucket = '57b269d0-96b8-4dae-8c55-0e8afd8866bd';
fileName = 'OnePass/Background/services3.png';
// Download a file from the storage bucket
 supabaseClient()
  .storage
  .from(bucket)
  .download(fileName).then(console.log).catch(console.error);
CosimoV
  • 283
  • 1
  • 4
  • 9

0 Answers0