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

[Bug]: TypeError: Invalid MIME type is thrown when await request.formData() in action #8982

Closed
tom-sherman opened this issue Jun 14, 2022 · 4 comments · Fixed by #8984
Closed
Labels

Comments

@tom-sherman
Copy link
Contributor

tom-sherman commented Jun 14, 2022

What version of React Router are you using?

6.4.0-pre.7

Steps to Reproduce

https://stackblitz.com/edit/github-vq4cvt?file=src/App.tsx

Click the submit button

Expected Behavior

Form is submitted

Actual Behavior

TypeError: Invalid MIME type is thrown from the action

@brophdawg11
Copy link
Contributor

Unsure what's going on here - but this is reproducible in a simple <form> with a file input. We'll need to dig in a bit here.

Screen Shot 2022-06-14 at 1 10 19 PM

tom-sherman added a commit to tom-sherman/react-router that referenced this issue Jun 14, 2022
@tom-sherman
Copy link
Contributor Author

Failing test here: tom-sherman@c7d0e5d

@brophdawg11
Copy link
Contributor

It looks like the browser handles this for you so we can omit the header
Screen Shot 2022-06-14 at 1 25 02 PM

@brophdawg11
Copy link
Contributor

Fixed in #8984 - should be able to get a 6.4.0-pre.8 release out hopefully this week

@brophdawg11 brophdawg11 removed their assignment Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants