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 :-)
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 :-)