Project

General

Profile

Patch #36817 » issue_36817.patch

Yazan Al aeddin, 2022-04-15 11:57

View differences:

public/javascripts/attachments.js
+ '-' + randomKey(5).toLocaleLowerCase()
+ '.' + file.name.split('.').pop();
var inputEl = $('input:file.filedrop').first()
// get input file in the closest form
var inputEl = $(this).closest("form").find('input:file.filedrop');
handleFileDropEvent.target = e.target;
addFile(inputEl, new File([file], filename, { type: file.type }), true);
}
(5-5/5)