storage icon indicating copy to clipboard operation
storage copied to clipboard

Inconsistent FileOptions Between JavaScript and C# Supabase Clients

Open Barlock42 opened this issue 9 months ago • 1 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

Maybe i am mistaken and it should be issue to supabase-csharp repo. Sorry if so.

Barlock42 avatar Feb 25 '25 16:02 Barlock42

Yes, please move the issue in supabase-csharp, thanks 👍

fenos avatar Sep 26 '25 09:09 fenos