The sample code below, inserted into an non-editable HTML area will display a Choose Files button in the web client and will allow multiple files to be selected in the dialog. When the dialog is closed, it then shows a count of the files selected. My understanding is this input function returns an array of filenames. Can that array be picked up and sent back to the server using the web client utils plugin, or?
- Code: Select all
var htm = '<html>'
htm += '<head>'
htm += '<script> function triggerCallback(returnValue) {' + plugins.WebClientUtils.generateCallbackScript(callback, ['returnValue']) + '}</script>'
htm += '</head>'
htm += '<body>'
//DISPLAYS A 'CHOOSE FILES' BUTTON AND ALLOWS MULTIPLE FILES TO BE SELECTED
htm += '<input name="uploads" type="file" multiple> <input type="submit">'
htm += '</body>'
htm += '</html>';