Hi MultipleFileUpload team,
I want to report some issues or misbehaviors found while using the MultipleFileUpload widget, version 3.0.3, which could be improved if you guys agree. Here goes:
So it seems that the widget always needs that container and expects the droppable area. This situation can be seen in the demo module.
"error[1]:[<filename>]: Invalid file. Supported extensions: pdf"
But immediately after this event, I get a second event with an ok response which shouldn't ever happen:
"complete[0]:<filename>"
So, this means that if I want to control how many file responses I can get from each file that I upload, means I can get more than one message per file, turning the logic control to be harded to do.
This error prevents any other file uploaded correctly to be processed, opposing the previous error which is processed file by file. Also, the file message format is completely different from the previous one:
The error messages should have the same format.
I believe the widget could have an 'Extended class' input which could display the button left, center or right as it is now.
Combining the button with the mandatory droppable area that must exist in the page and trying to display the button differently, it's not that easy to manage the existing CSS. More flexibility here could be also an improvement to be considered.
Great work, by in overall I think the main improvement should be the component to fire an event per file uploaded and the module which consumes it, should take control using some kind of logic built upon each response, using the referred <number_of_files_uploaded> more directly and also trying to take out the filename.filetype or mime-type per file. The current logic seems to be too attached to the UploadCache entity which should be only a temporarily entity as per its current definition (timer runs each 15 min. and deletes the uploaded files).
Tiago