Hi, guys. I have a Next.js app with two separate upload paths for a gallery feature. It's also about Supabase, so I decided to join this server and post this. There's a post on Stack Overflow, so if you wanna help me, check out here: https://stackoverflow.com/questions/79941971/how-to-enforce-server-side-file-validation-when-using-supabase-storage-client-si. Please read the post and write answers with code on Stack Overflow. I hope you help me for real. Thank you.
The user is seeking advice on enforcing server-side file validation for uploads in a Next.js app using Supabase Storage. They have posted a detailed question on Stack Overflow and are looking for solutions, preferably with code examples, to handle file validation effectively.
i don't know about magic bytes but storage buckets allow you to restrict the file size and the filetype if you select the options i have given here? If you use this method then you wouldn't need checks server side or client side but just handle the errors