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: fixes elements theme mutlipart form file upload #864

Merged

Conversation

wlhrtr
Copy link
Contributor

@wlhrtr wlhrtr commented Jul 9, 2024

When uploading a file the Content-Type header must not be set otherwise the browser cannot set the right boundaries for the multipart formdata payload.

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects
Bildschirmfoto 2024-06-06 um 12 07 56

TryItOut editor in elements theme is currently setting the Content-Type header and therefore file uploads do not work.

Should resolve #764

@shalvah
Copy link
Contributor

shalvah commented Jul 11, 2024

Thanks!

@shalvah shalvah merged commit 7f7b74a into knuckleswtf:master Jul 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants