0

I have a UI where the user enters some information and upload files/ delete files and modify information in multiple steps. I want to store the information in an object model in Go and only send it to DB once the user clicks on the submit at the final step. please let me know, what would be the best approach to maintain the data. I am currently using the Echo web framework for the API.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
dev0864
  • 465
  • 2
  • 7
  • 17
  • 1
    Echo's [Session Middleware](https://echo.labstack.com/middleware/session) is a good starting point for solving this problem. – Charlie Tumahai May 20 '20 at 17:56
  • 1
    Why not record all the data operations on the client and send them all together to the server only once, when the user hits submit? – mkopriva May 20 '20 at 18:02
  • @mkopriva thanks for the suggestion. this is definitely one of the options, but the user wants to have a file upload progress for each file they upload/ drag and drop. which is possible only making a server call with XMLHttpRequest. – dev0864 May 20 '20 at 18:24
  • @CeriseLimón thanks for the suggestion, I will explore it more. – dev0864 May 20 '20 at 18:24

0 Answers0