Answers for "file picker electron"

0

file picker electron

const {dialog} = require('electron').remote;

document.querySelector('#selectBtn').addEventListener('click', function (event) {
    dialog.showOpenDialog({
        properties: ['openFile', 'multiSelections']
    }, function (files) {
        if (files !== undefined) {
            // handle files
        }
    });
});
Posted by: Guest on January-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language