The file msw get is not the original file... Why and How to fix? #1272
Replies: 2 comments 2 replies
-
Where is definition for |
Beta Was this translation helpful? Give feedback.
-
Hey, @PeterlitsZo. Thanks for raising this. I don't think that MSW has proper support for mocking binaries and buffers. Some scenarios may work but some, as your experience shows, are unaccounted for. In that regard, I've kicked off a proof of concept of handling all mocked response bodies as readable streams, meaning that all data will be transferred between the client and the worker as |
Beta Was this translation helpful? Give feedback.
-
UPDATED: It looks to be a bug. See #929 and #931
Hello everyone...
Here is my hook, to upload file:
And here, is a handler to hold it:
Great right? But the
req.body.file
is not the same file as the original file. It is bigger. The data-URL of the file is also different than the data-URL of the original file...Help please. Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions