Record Video and Upload in C # MVC

-1
  • I have to record a 5s video on the webcam, after recording upload this video to a folder.
  • I have already searched for several Plugins in JS,
  • I just do not know how I can upload this video into a function in my Controller, Is there any way to do this using html and then paste it to a folder in my project? or some other way.
  • Project is in Asp.Net MVC
asked by anonymous 17.11.2017 / 13:08

1 answer

0

Well, since the library returns the file as an input file, what you can do to save it without submitting it is using localStorage . Since you did not leave more details about your code, I'll leave here a example of its use.

Now, to save it in "your project", as the browser runs on the client, it is not possible to save the file directly to your server, so you need to upload it to your application, sending it to the Controller. Follow example .

Note that the repository itself already has the implementation in MVC: RecordRTC-to- ASPNETMVC

    
17.11.2017 / 13:41