© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
4 replies
FakeJoe

Content type is being overwritten by Supabase

storage
Hi Guys, I am storing a file using Supabase SDK in .NET in I see that regardless of content-type I set explicitly, in Supabase my file has "octet/stream" content type.
Here is the code:
public async Task Save(
Guid assetId,
byte[] content,
string contentType,
CancellationToken ct = default)
{
var fileName = assetId.ToString();

await _client.Storage
.From(BucketName)
.Upload(
content,
fileName,
new Supabase.Storage.FileOptions
{
ContentType = contentType,
Upsert = true
});
}
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Database webhook overwritten by trigger
SupabaseSSupabase / help-and-questions
4y ago
supabaseKey property is now private from SupabaseClient
SupabaseSSupabase / help-and-questions
3y ago
Supabase brancing - vercel preview env variables get overwritten
SupabaseSSupabase / help-and-questions
4w ago
My supabase api is being DDOS'd
SupabaseSSupabase / help-and-questions
7mo ago