choose-files

    1.0.2 • Public • Published

    choose-files

    NPM travis-ci

    Prompt the user to select files, then pass the File objects to a callback. If the user cancels file selection, an empty Array is returned.

    Works in modern browsers, Cordova, Electron, etc.


    Usage

    import chooseFiles from 'choose-files';
     
    chooseFiles( files => {
        // `files` is an Array of File objects
     
        // Example - print filenames:
        let names = files.map( file => file.name);
        console.log(names);
    });

    License

    BSD 3-Clause

    Install

    npm i choose-files

    DownloadsWeekly Downloads

    24

    Version

    1.0.2

    License

    BSD

    Unpacked Size

    8.18 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar