SupabaseS
Supabase2w ago
jar

What are the allowed file types for storage? audio/webm?

I'm getting error
upload_sb_file_res44 {
  data: null,
  error: StorageApiError: mime type audio/webm is not supported
      at /var/task/node_modules/@supabase/storage-js/dist/main/lib/fetch.js:27:20
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
    __isStorageError: true,
    status: 400,
    statusCode: '400'
  }
}


 const upload_file_res = await supabasesk.storage.from("storage").upload(storage_id, file, {
    cacheControl: "3600",
    upsert: true,
  })


i can prob convert it to mp3 or something easily just wanted to double check that its not supported. (i may actually prefer to convert to mp3 anyway but still curious about this)
Was this page helpful?