Filename bug when uploading image/file to supabase

There seem to be some kinda of bug with weird filenames when trying to upload an image to a supabase bucket. Any idea why and how to prevent it ?

Here’s the use case :

User upload a file named “Screenshot 2024-03-21 at 2.42.30 PM.png”, causing an error

User upload a file named “ISSBlogo.png” and it works fine.

→ The actual filepath seems to be the cause…!?!
Am I missing something ?

1 Like

Great question! Let me check with the team on that and get back to you ASAP.
If you believe you have found a bug, please report it here.

Thanks! In the meantime, I will see if I find an answer regarding this matter.

Thanks Doc.

I found out the error is thrown because of the multiple ‘.’ present in the filepath of the file.
I don’t know if the error is on the weweb side of things or supabase, haven’t investigated that yet.

I’ve found a workaround, so in case anyone else encounters that problem, use a custom javascript sniplet to remove the dots and only keep the extension. Working fine for me so far.

1 Like

Nice! Thanks for the update!

I think this might as well be a Supabase thing. I’d suggest just removing the “special characters” as you already do.