375a55b0ad
Before any upload is submitted the upload is registered in a list of known uploads; this is needed to retrieve the upload object at several points of the upload process. When a chunked upload is submitted first a directory to upload all the chunks is created and, once that is done, the chunks are sent; in order to send a chunk the upload object needs to be retrieved from the list of known uploads. When all the active uploads were finished the list of known uploads was cleared. However, an upload is not active until it actually starts sending the data, so while waiting for the upload directory to be created the upload is already in the list of known uploads yet not active. Due to all this, if the active uploads finished while another pending upload was waiting for the upload directory to be created that pending upload would be removed from the list of known uploads too, and once the directory was created and thus the chunks were sent a field of a null upload object would be accessed thus causing a failure. Instead of removing all the known uploads at once when the active uploads finish now each upload is explicitly removed when it finishes. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> |
||
---|---|---|
.. | ||
templates | ||
admin.js | ||
app.js | ||
breadcrumb.js | ||
detailfileinfoview.js | ||
detailsview.js | ||
detailtabview.js | ||
favoritesfilelist.js | ||
favoritesplugin.js | ||
file-upload.js | ||
fileactions.js | ||
fileactionsmenu.js | ||
fileinfomodel.js | ||
filelist.js | ||
files.js | ||
filesummary.js | ||
gotoplugin.js | ||
jquery-visibility.js | ||
jquery.fileupload.js | ||
keyboardshortcuts.js | ||
mainfileinfodetailview.js | ||
merged-index.json | ||
navigation.js | ||
newfilemenu.js | ||
recentfilelist.js | ||
recentplugin.js | ||
search.js | ||
sidebarpreviewmanager.js | ||
sidebarpreviewtext.js | ||
tagsplugin.js | ||
upload.js |