mirror of
https://github.com/YGGverse/Yo.git
synced 2025-03-12 13:21:29 +00:00
update mime on progress function event
This commit is contained in:
parent
3a28bf5967
commit
7cf10079c6
@ -203,11 +203,19 @@ foreach($index->search('')
|
||||
$upload,
|
||||
$uploaded
|
||||
) {
|
||||
global $request;
|
||||
|
||||
global $index;
|
||||
global $document;
|
||||
|
||||
if (!$mime = curl_getinfo($request, CURLINFO_CONTENT_TYPE))
|
||||
{
|
||||
$mime = $document->get('mime');
|
||||
}
|
||||
|
||||
$index->updateDocument(
|
||||
[
|
||||
'mime' => $mime,
|
||||
'time' => time(),
|
||||
'code' => 200,
|
||||
'index' => 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user