-
Notifications
You must be signed in to change notification settings - Fork 162
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
Service Worker Interference with File Uploads After Chrome 130 Update #1478
Comments
Hi @RajatSaini7 thank you for your feedback. I test it as soon as possible. |
@guillaume-chervet - If there have been any updates on this issue. If there’s anything I can do to assist or if you need further information, please let me know. |
It seems to be a chrome issue : https://x.com/cyril_lakech/status/1851272645049811287?t=AQkF2YsmRU60oJguNO6Yqw&s=19 |
This is the chrome issue to fix this problem |
Does ypu problem resolved @clakech @RajatSaini7 ? |
Issue and Steps to Reproduce
I am experiencing issues with file uploads in my React application that uses the @axa-fr/react-oidc library even with latest release version (v7.22.32). After updating to Chrome version 130(latest), the file uploads are not working correctly when the service worker is active. The requests succeed when the service worker is disabled.
Steps to Reproduce:
Set up a React application using the @axa-fr/react-oidc library.
Implement a file upload feature that uses Axios for making POST requests.
Try uploading a file with the service worker active.
Observe that the file upload fails or behaves incorrectly.
Disable the service worker and try again. The upload should succeed.
Versions
v7.22.32
Screenshots
Network Tab:
Console:
Screen:
Expected
File uploads should work seamlessly, regardless of whether the service worker is active or not.
Actual
When attempting to upload a file, the request fails or behaves unexpectedly with the service worker enabled. However, if the service worker is disabled, the file uploads work correctly.
However, the file upload functionality works correctly in the following scenarios:
Chrome 129: The uploads succeed without issues when using this version.
Safari: The file uploads work as expected in Safari.
Additional Details
Suggested Solutions (if any)
I suspect the service worker might be incorrectly handling the upload requests for multipart/form-data. A potential fix could involve refining the fetch event logic to handle such requests differently.
The text was updated successfully, but these errors were encountered: