Project

General

Profile

Patch #36817 » issue_36817.patch

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

View differences:

public/javascripts/attachments.js
289 289
        + '-' + randomKey(5).toLocaleLowerCase()
290 290
        + '.' + file.name.split('.').pop();
291 291

  
292
      var inputEl = $('input:file.filedrop').first()
292
      // get input file in the closest form
293
      var inputEl = $(this).closest("form").find('input:file.filedrop');
293 294
      handleFileDropEvent.target = e.target;
294 295
      addFile(inputEl, new File([file], filename, { type: file.type }), true);
295 296
    }
(5-5/5)