[RSS Feed/News] Attachment handler should use validator

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
In Method \XFMG\Attachment\Media::validateAttachmentUpload() XFMG options are being checked directly, although \XFMG\Validator\Ffmpeg does exist.

PHP:

Code:
if (!$ffmpegOptions['ffmpegPath'] || !$ffmpegOptions['transcode'])
{
    $upload->logError('xfmgCannotTranscode', \XF::phrase('xfmg_this_file_is_not_encoded_in_supported_format_and_cannot_be_transcoded'));
}

This is a bit unfortunate, as we are using a custom runner that does not require a valid FFMPEG path (in fact it...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom