Js websocket cannot get the file name after receiving the file?

js websocket receives the file Blob object sent by the server, although FileReader can read the contents of the file itself, the question is how to get the file name? Checked that the API, of the Blob object does not have a filename attribute. If so, each time js websocket sends a file to the server, it has to send the file name data separately?

Jan.11,2022

can't you get the direct file object Blob.name?

Menu