JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25943F

Package Exports

  • progress-up-react

Readme

Progress.up HTML5 File Upload Progress indicator

Progess.up

What is this?

This is a HTML5 multiple files Upload plugin with progress bar indicator.

This uses the HTTP File API protocol to show continuous progress.

This is the very first attempt to create a clean no frills upload plugin in 100% Typescript. Now available for Angular, Vue, Svelte and React.

Canonical home page

Demo available in above page ☝️ .

Instructions

    $ npm install progress-up-react
# or 
    $ yarn add progress-up-react

Detailed instructions

This is before upload

Progess-up start upload

This is after uploading

Progess-up finish upload

Why should you care?

If you allow multiple large files upload then a progress indicator is a cool way to give user feedback.

Nowadays HTML5 File API based progress is the best way to achieve your goal.

This project was written ground up with latest technology as of Oct 22, 2022.

However the status of project is Beta.

Most testing is needed. If you volunteer please get in touch.

How to build and run as plain js

$ git clone https://github.com/girish1729/progress.up
$ cd progress.up/html5-upload
$ yarn install

# or

$ npm install

$ mkdir uploads

$ npm start

Go to http://localhost:2324

and try uploading files.

You may use manual upload.

Drag and drop into the shaded area is not implemented yet.

The uploaded files are present in html5-upload/uploads folder.

Backend

This backend is Node.js HTTP server express.js with multer middleware

This ensures that this code is platform agnostic. Most issues with file upload plugins extant today hover around not specifying backend correctly. Not making it easy to use. Not explaining what should be the input file name attribute etc.

We require a backend that accepts multipart/form-data as upload protocol.

Also the name of the <input type='file attribute should myFiles.

Frontend - the plugin itself

It is using the HTML5 File API.

This is a clean way to get progress indicator for file uploads.

Screencast of upload

Progess.up screencast

Next steps

Plugins for

are ready.

If you cannot write code, then buying me a coffee can work as well.

Contact

You can DM me on Twitter for help/suggestions.

You can follow me for updates.

Tweet this to followers

tweet button

Buy me a coffee to accelerate development

Buy Me A Coffee