How to display file name when you download drag and drop?

During normal load - the file name is displayed in the label.
When you download drag and drop is not displayed, there is now an alert is, was trying to get this:

Please tell me what's wrong. Thank you!
March 23rd 20 at 19:29
1 answer
March 23rd 20 at 19:31
where the label is actually where the name display? tried in the console to bring filelist (line 28), everything works
instead of "choose file" should be the name of the file.
We need to change this part as I understand
 url: dropZone.attr('action'),
 type: dropZone.attr('method'),
 data: Data,
 contentType: false,
 processData: false,
 success: function (file) {


and instead of the alert to make sure to output the file name here
<label class="form-right-block_label" for="file-input2">Select files</label>
- Matt.Wyman commented on March 23rd 20 at 19:34
@Matt.Wyman, then? lines 28-32 - Jonathan_Kutch commented on March 23rd 20 at 19:37
Cegt@Jonathan_Kutch, Super, thank you) - Matt.Wyman commented on March 23rd 20 at 19:40

Find more questions by tags jQueryJavaScriptAJAX