I'm building a file upload personal project with the following tech stackFront-end: ReactBack-end: Multer, ExpressNow I want to show upload status on client side whiles the file is being uploaded and update the client side again if upload is complete.Based upon research I realised I needed to use Websockets (Socket IO) for what I want to achieve (Real-time communication of upload events from server to client.With Post Request using Axios Or fetch it will be difficult to achieve Real-time upload events.Now I was doing research on Stack Overflow on socket IO file upload and someone stated that it's not recommend to use Socket IO for file uploads, instead Post request with fetch/Axios etc is recommend.Now which of the tools (Post With fetch/Axios Or Websockets Socket IO) is recommend for file uploads?
Submitted December 04, 2019 at 12:59PM by silverparzival
No comments:
Post a Comment