https://supabase.com/ logo
When uploading files to storage the data I get in ...
# off-topic
j
When uploading files to storage the data I get in return isn't type safe.
Copy code
ts
const { data, error } = await supabase.storage
          .from(storageBucketsNames.portfolioFiles)
          .upload(`something/avatar`, file, { upsert: true });
          if (error) return { error };
         typeof  data // { Key: string; } | null
Why is data nullable?