XFMG\Service\Media\Transcoder::finalizeTranscode()
:PHP:
Код:
File::deleteFromAbstractedPath($queueData['fileName']);
clearstatcache();
$updates = [
'file_hash' => md5_file($outputFile),
'file_size' => filesize($outputFile),
];
$data = $attachment->Data;
$data->bulkSet($updates);
if (!$data->save(false, false))
{
$this->transcodeException($queueData);
}
$finalPath = $data->getAbstractedDataPath();
File::copyFileToAbstractedPath($outputFile, $finalPath);
The original path...
Read more
Читать далее...