Skip to content

Inconsistent FileOptions Between JavaScript and C# Supabase Clients #184

Open
@Barlock42

Description

@Barlock42

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions