mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1274 check chunked uploads after all chunks are ready
This commit is contained in:
parent
2284fb7128
commit
b193ad73e3
2 changed files with 10 additions and 0 deletions
|
|
@ -17,6 +17,12 @@ class UploadFileFilter
|
|||
return false;
|
||||
}
|
||||
|
||||
// Don't check partial uploads (chunks).
|
||||
if (Context::get('act') === 'procFileUpload' && preg_match('!^bytes (\d+)-(\d+)/(\d+)$!', $_SERVER['HTTP_CONTENT_RANGE']))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Call Rhymix framework filter.
|
||||
return Rhymix\Framework\Filters\FileContentFilter::check($file, $filename);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue