Commit c5910518 authored by Robert Lyon's avatar Robert Lyon

Bug 1859127: Keep the upload restriction in play

On the subsequent file upload

behatnotneeded

Change-Id: I46aaa83a1b2ae09bfb89f5645046f1c932b7b586
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 967d6c47
......@@ -158,13 +158,19 @@ var FileBrowser = (function($) {
self.submitform();
// $(self.id + '_userfile').value = ''; // Won't work in IE
var accept = $('#' + self.id + '_userfile').prop('accept');
if (typeof accept === typeof undefined || accept === false) {
accept = '*';
}
$('#' + self.id + '_userfile_container').empty().append(
$('<input>', {
'type':'file',
'class':'file',
'id':self.id+'_userfile',
'name':'userfile[]',
'multiple':''
'multiple':'',
'accept': accept,
})
);
$('#' + self.id + '_userfile').off('change');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment