0

I am working on Asp .net core. I need to upload the multiple files on one folder using dialog box which pops up when clicked on button. The uploading task must be run in background. I really don't know how to do it. Is there any way using which I can upload video in parallel, which even run after page refreshes. I have used razor views to create web page and used JavaScript for button clicked event.

2 Answers 2

1
  1. Encode .mp4 to base64.

    Base64-encoding a Videofile in js

  2. Save parts of the base64 string to a database.

    http://html5doctor.com/introducing-web-sql-databases/

  3. Service works (where you can take the parts of the base64 string and send it to .NET)

    https://developer.mozilla.org/pt-BR/docs/Web/API/Service_Worker_API/Using_Service_Workers

  4. In .net you will be saving the parts of the string until you have all the parts, then you just have to put all the bytes together and save it in the video format, which in this case is .mp4

Sign up to request clarification or add additional context in comments.

1 Comment

can we use a hosted service for that and if yes can u please give more details and expainations ? thank you !
1

You can split the file / video into parts and save it in the browser.

Example: You save a video in 20 parts, encoded in base64, search for "service_works.js" with it you can run a background script in the browser, I believe you can make some http calls too, then just send these base64 parts to your .net and there when you have all the parts you put everything together.

1 Comment

Thank you for reply, Do you have any reference or demo regarding above?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.