@ec-europa/ecl-forms-file-uploads

ECL File upload

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
629Jun 24, 2021Jan 30, 2017Minified + gzip package size for @ec-europa/ecl-forms-file-uploads in KB

Readme

File uploads

Combination of fields and buttons to add documents or media to a form.

When to use

When there is a need to allow users to attach anything to a form (documents, pictures, videos, etc).

Implementation

In order to automatically attach event listeners on your file upload forms, add the following script to your page:

document.addEventListener('DOMContentLoaded', function() {
  ECL.fileUploads();
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.