how to store an audio?

I’m trying to store a mp3 audio but get an Invalid or unexpected token.. I don’t really know how to do it, any help please
No description
4 Replies
Socal
Socal2y ago
is there a reason you need to write the mp3 to disk first instead of just passing output.data to supabase? also, if you're trying that in a supabase edge function, you cannot do fs functions there
Socal
Socal2y ago
No description
miky2fois
miky2foisOP2y ago
I initially stored it locally so I don’t regenerate the audio every time, the was that I needed a policy, for now I just bypassed it by using the secret key and it works
miky2fois
miky2foisOP2y ago
No description

Did you find this page helpful?