Uploading PDF to Supabase bucket gets wrong content type

When I upload my pdf files using the Storage Supabase action, it is uploaded with the text/plain type in the Supabase storage:

This leads to an error when viewing the pdf file via URL.

But when I checked my WeWeb upload workflow, the type seems to be correct(application/pdf):

Can someone help me figure out what is happening and help make it right?

Is your PDF right? I use the same exact workflow, just a little improved for performance (a special loop), and it works the same. Maybe you’re setting the content type explicitly somewhere?

I’d probably just remove and add a fresh instance of this action without touching the Content type property. WeWeb is super broken with Supabase nowadays, so it might as well be a WeWeb editor bug, as usually.

Thanks! Explicitly setting the content type worked for me. I assumed that it would be detected automatically upon upload, my bad.