Socket
Socket
Sign inDemoInstall

@maslick/aplouder

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @maslick/aplouder

enhanced multi-file uploader


Version published
Weekly downloads
17
Maintainers
1
Created
Weekly downloads
 

Readme

Source

=apLouder=

npm (scoped) npm bundle size (minified) npm no dependencies npm download count License: MIT

enhanced multi-file uploader

Features

  • enhances the standard HTML input type="file" element
  • adds an image gallery with thumbnails
  • shows size/filename on mouse hover
  • on-click image preview (use left/right/esc keys to navigate through the gallery)
  • 100% JavaScript
  • works perfectly on desktop, mobile and tablet
  • support for non-image files
  • no extra dependencies (jquery, etc.)
  • small size (minified ~6 Kb)
  • browser and Node.js friendly

aplouder

Demo

Live demo can be found here.

Installation

<link rel="stylesheet" href="aplouder.css">
<script src="aplouder.js"></script>

Usage

  1. Define your input file element:
<input type="file" id="my-element" multiple>
  1. Initialize ApLouder
<script>
    var aplouder = new Aplouder({
        id: "my-element",
        callback: function (f) {
            console.log(f.src.name);
        }
    });
    aplouder.init();
</script>

aplouder

is identical to:

aplouder

Node.js environment

import Aplouder from "@maslick/aplouder";

const aplouder = new Aplouder({
    id: "el-1",
    callback: function (f) {
        console.log(f.src.name);
    }
});

For a React.js example see this project.

License

This project is licenced under the MIT License.

Keywords

FAQs

Last updated on 02 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc