storage-csharp icon indicating copy to clipboard operation
storage-csharp copied to clipboard

Inconsistent FileOptions Between JavaScript and C# Supabase Clients

Open Barlock42 opened this issue 9 months ago • 0 comments

Description: The FileOptions class in the C# Supabase client does not support all the options available in the JavaScript Supabase client. This discrepancy limits feature parity between the two implementations, making it difficult for developers to use the same configuration across different platforms.

Expected Behavior: The FileOptions class in C# should support the same options as the JavaScript client, including:

duplex

headers

metadata

Reference: For JavaScript implementation details, see Supabase JavaScript Storage Upload.

Actual Behavior: Currently, the C# FileOptions class only includes:

cacheControl

contentType

upsert

Steps to Reproduce:

Try to use duplex, headers, or metadata in the C# client.

Observe that these options do not exist in the FileOptions class.

Suggested Fix: Extend the FileOptions class in C# to include all options present in the JavaScript client for consistency and feature parity.

Environment:

Supabase C# SDK Version: 1.1.1

Barlock42 avatar Feb 25 '25 16:02 Barlock42