uploader-plus icon indicating copy to clipboard operation
uploader-plus copied to clipboard

Alfresco 5.2 Import multiple documents in firefox: only the last is imported

Open anleoo opened this issue 6 years ago • 3 comments

Hi,

I m working with Alfresco 5.2.2 and I use the uploder plus 1.6. When I upload several documents in Firefox there is a probleme : only the last one is uploaded. With IE10 and Chrome and it's ok. Firefox versions are 57 and 61. Without uploader it's ok too.

Thank you, Regards ! Anna

anleoo avatar Aug 28 '18 13:08 anleoo

The issue is still here on Firefox version 96.0 .

tartard avatar Jan 24 '22 18:01 tartard

@douglascrp I've just tested the 1.8 version, and the bug It is still present in the Firefox 106.0.5. I debugged a bit, I think it is connected with the _spawnUploads() function, precicelly with the return statement in the dnd-upload-plus.js. In the Firefox, files are processed one by one, and the fileId from the fileStore variable (original dnd-upload.js file) is always "file0" so files are "overriding" each other.

howkymike avatar Nov 15 '22 15:11 howkymike

In the Alfresco's dnd-upload.js I have changed var fileId = "file" + i; to var fileId = "file" + i + "_" + Date.now(); and it seems to work. Can anyone confirm there are no drawbacks to this solution?

howkymike avatar Nov 16 '22 10:11 howkymike