Closed intech closed 3 years ago
Thanks, I will check it.
I can't reproduce it locally. I see it's wrong in codesandbox example. But locally (npm run dev file
) it's called with an empty file stream and create an empty file if no file selected.
Please try with 0.10.0-beta4: https://github.com/moleculerjs/moleculer-web/blob/master/CHANGELOG.md#multipart-fields--url-params
@icebob everything is working! Excellent work, thank you!
We need to change the service invocation behavior when using multipart. If we use FormData, in which the file is not transferred, then we will never receive a service call, since promises for calls are collected in the busboy
file
event https://github.com/moleculerjs/moleculer-web/blob/master/src/alias.js#L163-L172