jquery-progress-upload
A library to show progress and open button for file uploader.
Example
Click here to view an example.
How to install
$ npm install jquery-progress-upload
And add your reference:
How to use
Client side
Create a form
Add add the following javascript.
var settings = ;;
Run your app and upload a file.
Server side
Create a new action at /api/upload
and save that file.
For example:(In C#)
var file = Request.Form.Files.First();var fileStream = new FileStream(GetCurrentDirectory(), FileMode.Create);await file.CopyToAsync(fileStream);
API
var settings = { //Occurs when element loads. } { //Occurs when user put a file in it. } { //Occurs when user is submitting the form. } { //Occurs when all data transformed. } { //Occurs when server gives response. } { //Occurs when server could not accept the file. }; ;