You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that on uploader.init, the FilesAdded event is bound, which then fires QueueChanged if any actual files were added.
In the UI widget, the autostart event is bound to FilesAdded, too. The uploaded file list (actual html) gets updated on QueueChanged. The problem is that in _handleFileStatus, case plupload.UPLOADING the widget is trying to scroll to the actual file being uploaded (using rowOffset = $('#' + file.id).position().top + $('#' + file.id).height();) while this list is actually not yet popupulated yielding $('#' + file.id) an empty array. Here comes the error reported in the forum.
The text was updated successfully, but these errors were encountered:
The problem here is a bit deeper then that. In addition to handlers defined in UI widget, there is also a core handler for FilesAdded, which triggers QueueChanged event before the UI widget's FilesAdded handler is even called. So that by the moment file list should already be populated. The problem is caused by the fact that QueueChanged in the core is detached from the flow and triggered with a delay of 1ms, which is sometimes just enough to screw the event order and the whole thing.
But thank you for bringing this to our attention, your investigation made me realize the root of the problem :)
Causing this: http://www.plupload.com/punbb/viewtopic.php?id=684
The problem is that on uploader.init, the
FilesAdded
event is bound, which then firesQueueChanged
if any actual files were added.In the UI widget, the autostart event is bound to
FilesAdded
, too. The uploaded file list (actual html) gets updated onQueueChanged
. The problem is that in_handleFileStatus
,case plupload.UPLOADING
the widget is trying to scroll to the actual file being uploaded (usingrowOffset = $('#' + file.id).position().top + $('#' + file.id).height();
) while this list is actually not yet popupulated yielding$('#' + file.id)
an empty array. Here comes the error reported in the forum.The text was updated successfully, but these errors were encountered: