Skip to content

Conversation

@endoooo
Copy link
Contributor

@endoooo endoooo commented Nov 10, 2025

Problem

when uploading files using Finch adapter, the content-type header in Request is always overwritten by MIME.from_path(file)

Solution

instead of always setting the content-type header using MIME.from_path/1, we default to using Request headers, using MIME only as a fallback.

resolves supabase-community/storage-ex#15

Rationale

this works without the need to implement adjustments in supabase-community/storage-ex

…load/3`

now we check for content-type in the request header before setting it with `MIME.from_path/1`.

resolves supabase-community/storage-ex#15
@zoedsoupe
Copy link
Member

thanks!

@zoedsoupe zoedsoupe merged commit f203781 into supabase-community:main Nov 10, 2025
24 checks passed
@zoedsoupe zoedsoupe mentioned this pull request Nov 10, 2025
zoedsoupe added a commit that referenced this pull request Nov 24, 2025
…com:supabase-community/supabase-ex into fix/allow-converting-key-types-json-decoder

* 'fix/allow-converting-key-types-json-decoder' of github.com:supabase-community/supabase-ex:
  fix: adjust content-type header in `Fetcher.Adapter.Finch.upload/3` (#76)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

content type issues when uploading files

2 participants