Creating file-upload components can be quite hard. form.on('file', (field, file) => { // Do something with the file // e.g. save it to the database // you can access it 31 May 2016 It is possible to programmatically open a file dialog in JavaScript, but Nowadays, many websites don't show the raw element anymore. style="display: none" />