Issue1

Title Drag and drop file upload has two minor issues
Priority feature Status in-progress
Superseder Nosy List admin
Assigned To
Keywords Orthanc Explorer 1

Created on 2015-09-08.14:55:33 by admin, last changed by admin.

Files
File name Uploaded Type Edit Remove
1918679651-Capture.PNG admin, 2020-06-29.15:24:11 image/png
2741110632-Capture.PNG admin, 2020-06-29.15:24:13 image/png
Messages
msg1 (view) Author: admin Date: 2015-09-08.14:55:33
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2015-09-08.12:55:33]

Reported by andycrabb, Feb 28, 2015 as issue 28 on Google Code

**What steps will reproduce the problem?**

1. Drag and drop files onto 'Upload DICOM files' screen
2. Cancel out of login dialog

**What is the expected output? What do you see instead?**

All files to be uploaded are listed twice.  And you have to cancel out of the 'Authentication Required'  dialog box for each file, if you don't successfully log in.

**What version of the product are you using? On what operating system?**

Orthanc 0.8.6 on Linux (Amazon AMI)
msg2 (view) Author: admin Date: 2015-09-08.14:56:45
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2015-09-08.12:56:45]

*Comment by mp.zwiers on Apr 27, 2015*

I've also seen this duplicative list behaviour. Reloading (refreshing) the page (sometimes twice) can make the problem go away
msg3 (view) Author: admin Date: 2019-01-10.11:20:57
[BitBucket user: Alain Mazy]
[BitBucket date: 2019-01-10.10:20:57]

Just added a log to try to debug the "twice listed" issue and I've not been able to reproduce it afterwards.  So let's keep the log... https://hg.orthanc-server.com/orthanc/changeset/b311cff247cab5a370fd1f88150fec1ec56469d9
msg4 (view) Author: admin Date: 2019-01-24.10:23:48
[BitBucket user: Alain Mazy]
[BitBucket date: 2019-01-24.09:23:48]

I've captured the bug while doing something else (will look later):
![Capture.PNG](1918679651-Capture.PNG)

So, this means that the `fileuploaddrop` event is fired twice with the same content (1 file in this case)

And it seems that the event is triggered twice at very high level (from jquery) because I passed 2 times in this code:
![Capture.PNG](2741110632-Capture.PNG)

So I've added a log to detect if the event is being registered twice: https://hg.orthanc-server.com/orthanc/changeset/4cfed5c2eacd850db5654f46dbb0f8192d07c781
msg5 (view) Author: admin Date: 2020-06-29.15:24:11
[Bugzilla user: s.jodogne@gmail.com]
[Bugzilla date: 2020-06-29T13:24:11+00:00]

Created attachment 102
1918679651-Capture.PNG
msg6 (view) Author: admin Date: 2020-06-29.15:24:13
[Bugzilla user: s.jodogne@gmail.com]
[Bugzilla date: 2020-06-29T13:24:13+00:00]

Created attachment 103
2741110632-Capture.PNG
History
Date User Action Args
2026-07-29 15:51:18admincreate