ElkArte Community

Elk Development => Bug Reports => Topic started by: emanuele on June 21, 2018, 02:50:01 am

Title: D&D of multiple files results in uploading only one
Post by: emanuele on June 21, 2018, 02:50:01 am
Quote from: Jorin – I attached two png files, waited long enough, but after posting them only one was there. Had to edit and attach the second one a second time. Happens often at my board.  :(
This is fun.
I have been able to replica this one exactly once here and on my local test site, then it all worked perfectly. :o

At first I thought it was something with minification, but now I don't know.
Can you try here if you have the same issue?
Title: Re: D&D of multiple files results in uploading only one
Post by: Jorin on June 21, 2018, 03:17:54 am
Okay, I try.
Title: Re: D&D of multiple files results in uploading only one
Post by: Jorin on June 21, 2018, 03:18:14 am
Second try...
Title: Re: D&D of multiple files results in uploading only one
Post by: Jorin on June 21, 2018, 03:18:34 am
And a third...
Title: Re: D&D of multiple files results in uploading only one
Post by: Jorin on June 21, 2018, 03:19:06 am
Ah! Happened with the third try. I did nothing different.  :o
Title: Re: D&D of multiple files results in uploading only one
Post by: emanuele on June 21, 2018, 06:34:09 am
hmm... headscratch
I hate random bugs... :-\
Title: Re: D&D of multiple files results in uploading only one
Post by: Jorin on June 21, 2018, 06:39:55 am
Is it still fun?   :D
Title: Re: D&D of multiple files results in uploading only one
Post by: Spuds on June 21, 2018, 10:08:35 am
I had put this hack fix for this issue for 1.1.3,  obvious we need moar since its showing up still.

https://github.com/elkarte/Elkarte/commit/f722ea0f800fd4379b6c59be9f2c26954723dca4#diff-4ad4f0f7001ebc758bee31db818c00f8

Could increase the wait to say 300 or find some better solution ... it seems to be caused by slow server response or other.  With the ajax promises, the order of the callbacks should be respected, so I'm not sure why the delay is needed or helped at least on my local.