Skip to content

Override Request for POST Multipart form #22

@SylvainAssemat

Description

@SylvainAssemat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions