Not a bug Video uploads

Status
Not open for further replies.

shifted123

New member
Affected version
2.0.1
Hi community i am facing an error when trying to upload videos. Anything under 500MB seems to work perfectly but when trying to upload anything over that it fails and im getting this error

  • ErrorException: [E_WARNING] fopen(): Filename cannot be empty
  • src/addons/XFMG/VideoInfo/Preparer.php:25
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fop...', '/var/www/vhosts...', 25, Array)
#1 src/addons/XFMG/VideoInfo/Preparer.php(25): fopen('', 'rb')
#2 src/addons/XFMG/Attachment/Media.php(75): XFMG\VideoInfo\Preparer->__construct('')
#3 src/XF/Attachment/Manipulator.php(155): XFMG\Attachment\Media->validateAttachmentUpload(Object(XF\Http\Upload), Object(XF\Attachment\Manipulator))
#4 src/XF/Pub/Controller/Attachment.php(88): XF\Attachment\Manipulator->insertAttachmentFromUpload(Object(XF\Http\Upload), NULL)
#5 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Attachment->actionUpload(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Upload', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Attachment), NULL)
#7 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#9 src/XF.php(329): XF\App->run()
#10 index.php(13): XF::runApp('XF\\Pub\\App')
#11 {main}

array(4) {
["url"] => string(106) "/index.php?attachments/upload&type=xfmg_media&context[category_id]=7&hash=0eb94f8b0fa730138d4127b6e1d0b668"
["referrer"] => string(63) "https://mysite.com/index.php?media/categories/no-cat.7/add"
["_GET"] => array(4) {
["attachments/upload"] => string(0) ""
["type"] => string(10) "xfmg_media"
["context"] => array(1) {
["category_id"] => string(1) "7"
}
["hash"] => string(32) "0eb94f8b0fa730138d4127b6e1d0b668"
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["flowChunkNumber"] => string(1) "1"
["flowChunkSize"] => string(10) "4294967296"
["flowCurrentChunkSize"] => string(9) "629115779"
["flowTotalSize"] => string(9) "629115779"
["flowIdentifier"] => string(43) "629115779-nameoffilemp4"
["flowFilename"] => string(43) "nameoffile.mp4"
["flowRelativePath"] => string(43) "nameoffile.mp4"
["flowTotalChunks"] => string(1) "1"
}
}

All php.inf far exceeds the limits to upload anything upto 2GB in size.
 
upload max file size is set to 8000M post max size is set to 10000M

post_max_size10000M10000M
upload_max_filesize8000M8000M
 
the bit that is concerning me is

  • ErrorException: [E_WARNING] fopen(): Filename cannot be empty
  • src/addons/XFMG/VideoInfo/Preparer.php:25

Why is it saying filename cannot be empty?
 
Status
Not open for further replies.
Top Bottom