📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
M

RSS Video transcoding deletes original file before new one saved

M

mattrogowski

Guest
Guest or Bot
XFMG\Service\Media\Transcoder::finalizeTranscode():

PHP:

Code:
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

Continue reading...
 
Similar content Most view View more
Back
Top