# HG changeset patch # User Dan Fuhry # Date 1323090960 18000 # Node ID e80b5733ce9d65d3d45cceff9618a904b2223a80 # Parent 12c23b83c79d5518db19fd1bbea94b1fb6136971 AjaxUpload: fixed handling of upload completion diff -r 12c23b83c79d -r e80b5733ce9d plugins/SpecialPageFuncs.php --- a/plugins/SpecialPageFuncs.php Fri Dec 02 01:15:55 2011 -0500 +++ b/plugins/SpecialPageFuncs.php Mon Dec 05 08:16:00 2011 -0500 @@ -716,7 +716,15 @@ $key = "upload_progress_{$_GET['uploadstatus']}"; $info = isset($_SESSION[$key]) ? $_SESSION[$key] : array(); if ( isset($_SESSION[$key]) && $_SESSION[$key]['done'] ) + { unset($_SESSION[$key]); + } + + if ( !isset($_SESSION[$key]) ) + { + // workaround to cause stuck uploads on the client side to shut up + $info['done'] = true; + } if ( is_array($info) ) {