You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to trigger an additional event after the files have been uploaded. For example, after I upload an XML file, I would like to be able to hit a "Load Data" button which will take the file and do some stuff with it on the server side.
I have the GUI setup properly, and I added a few entries to filehandler.js and uploadhandler.js
//FILEHANDLER.js
handler.on('loadAction', function (fileName) {
middleware.emit('load', fileName);
});
//UPLOAD HANDLER.JS
.on('loadAction', function (e) {
self.emit('load', e);
})
I'm looking to do something like the below via the Middleware:
upload.on('loadAction', function (fileName) {
console.log("Loading File: " + fileName);
//some custom business logic here
});
I'm not sure how to go about making this tweak... but it WOULD be a nice feature for the middleware down the road :)
The text was updated successfully, but these errors were encountered:
I want to be able to trigger an additional event after the files have been uploaded. For example, after I upload an XML file, I would like to be able to hit a "Load Data" button which will take the file and do some stuff with it on the server side.
I have the GUI setup properly, and I added a few entries to filehandler.js and uploadhandler.js
I'm looking to do something like the below via the Middleware:
I'm not sure how to go about making this tweak... but it WOULD be a nice feature for the middleware down the road :)
The text was updated successfully, but these errors were encountered: