I would like to ask go websocket server how to achieve file upload? Is there any specific reference?

recently encountered a problem, go write websocket server how to achieve file upload function? Baidu Google did not find the answer they wanted. Is there any example of a third party or that can run successfully?

tried to search for some answers, but they were all related to web uploading files. I don"t know if there is something wrong with my understanding or the wrong search keywords. Please correct or give a simple example. O ( _ ) O Thank you

Mar.02,2021

first of all, the front-end js has no way to access the file like the back-end. The front-end only supports http form processing files. Unless you websocket server can handle this kind of message, I don't think it will work! You can extend websocket server, and open an extra http service to receive it.

Menu