Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(treaty2): file getting sent as json #73

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

tomatenbaumful
Copy link
Contributor

Trying to send an File will result in the Request getting sent as JSON, because the code handling files is unreachable since the object condition is also true.
Also the content-type header needs to be removed so the fetch API can set the form-data type with correct boundaries otherwise there is an issue on the Server.

@Mautriz
Copy link

Mautriz commented Mar 29, 2024

I was just submitting a PR for the exact same thing, thanks man, I hope it gets merged soon :~D

@SaltyAom SaltyAom merged commit cb0a621 into elysiajs:main Apr 23, 2024
1 check failed
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.

4 participants