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

Override Request for POST Multipart form #22

Open
SylvainAssemat opened this issue May 10, 2021 · 0 comments
Open

Override Request for POST Multipart form #22

SylvainAssemat opened this issue May 10, 2021 · 0 comments

Comments

@SylvainAssemat
Copy link

SylvainAssemat commented May 10, 2021

Hi

I m just stuck when i use the service worker using a POST request with a formData (jquery) to send a simple file to the java backend.
It seems the return req.text(); of the body file (with all the boudary wrapper etc...) is modified (or corrupted) because on the backend the Multipart REST catch the file but can not make anything with it .

I try to test req.formData() insteadOf req.text() but nothing relevant.

Without using the service worker, (meaning no service worker on browser) everything work.
So the $ajax post is valid, and Rest WS too.

Maybe someone could help please ?

Feel free to comment any idea :-)

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

No branches or pull requests

1 participant