Error while uploading image to storage bucket
I have a storage bucket, where I could upload and read images. With the help of supabase AI, created an edge function to generate a thumbnail image whenever an image is uploaded. And a webook (I think in the database functions) to trigger the edge function. After that I couldn't upload files and getting this error.
Error uploading image: {"code": "DatabaseError", "error": "DatabaseError", "message": "insert into "objects" ("bucket_id", "metadata", "name", "owner", "owner_id", "user_metadata", "version") values ($1, DEFAULT, $2, $3, $4, DEFAULT, $5) - record "new" has no field "mime_type"", "statusCode": "500"}
Any help is appreciated.
Error uploading image: {"code": "DatabaseError", "error": "DatabaseError", "message": "insert into "objects" ("bucket_id", "metadata", "name", "owner", "owner_id", "user_metadata", "version") values ($1, DEFAULT, $2, $3, $4, DEFAULT, $5) - record "new" has no field "mime_type"", "statusCode": "500"}
Any help is appreciated.