Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix storage mime type not getting set on create (#36023)

Terry Sutton62bc992baa43
diff --git a/apps/studio/data/storage/bucket-create-mutation.ts b/apps/studio/data/storage/bucket-create-mutation.ts
index a585f4a7278..81dc63d8b17 100644
--- a/apps/studio/data/storage/bucket-create-mutation.ts
+++ b/apps/studio/data/storage/bucket-create-mutation.ts
@@ -28,7 +28,7 @@ export async function createBucket({
const payload: Partial<CreateStorageBucketBody> = { id, public: isPublic }
if (file_size_limit) payload.file_size_limit = file_size_limit
- if (allowed_mime_types) payload.allowed_mime_types
+ if (allowed_mime_types) payload.allowed_mime_types = allowed_mime_types
const { data, error } = await post('/platform/storage/{ref}/buckets', {
params: { path: { ref: projectRef } },