Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tyshgc
Copy link

@tyshgc tyshgc commented Oct 16, 2023

What steps will reproduce the problem:

  1. Start the service worker session in the auth-next snippet.
  2. Attempt to upload a file using a form with enctype="multipart/form-data".
  3. Observe that the session does not handle the multipart/form-data POST request correctly.

What is the expected result?

The service worker session should correctly handle multipart/form-data encoded forms, parsing the file input and passing it along to the server without issues.

What happens instead of that?

The service worker cannot process the multipart/form-data content type and returns buffer information in the body as text data.

The file upload succeeds, but the file is corrupted due to this.

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

Successfully merging this pull request may close these issues.

2 participants