mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Fix #1176 progress bar closing too early when uploading multiple files
This commit is contained in:
parent
f1f2ddc8f8
commit
3ce11f6432
2 changed files with 22 additions and 7 deletions
|
|
@ -69,8 +69,7 @@ class fileController extends file
|
|||
$this->add('chunk_uploaded_size', $chunk_start);
|
||||
|
||||
// Check existing chunks
|
||||
$nonce = Context::get('nonce');
|
||||
$temp_key = hash_hmac('sha1', sprintf('%d:%d:%d:%s:%s', $editor_sequence, $upload_target_srl, $module_srl, $file_info['name'], $nonce), config('crypto.authentication_key'));
|
||||
$temp_key = hash_hmac('sha1', sprintf('%d:%d:%d:%s:%s', $editor_sequence, $upload_target_srl, $module_srl, $file_info['name'], session_id()), config('crypto.authentication_key'));
|
||||
$temp_filename = RX_BASEDIR . 'files/attach/chunks/' . $temp_key;
|
||||
if ($chunk_start == 0 && Rhymix\Framework\Storage::isFile($temp_filename))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue