OkanOzturk
Active member
I was working on Backblaze integration, but when I try to upload files I get the error below.
BackBlaze api: https://github.com/RunCloudIO/flysystem-b2
BackBlaze api: https://github.com/RunCloudIO/flysystem-b2
Code:
$config['fsAdapters']['data'] = function()
{
return new \RunCloudIO\FlysystemB2\BackblazeAdapter('xx', 'xx', 'xx');
};
Code:
ErrorException: [E_WARNING] fclose(): supplied resource is not a valid stream resource src\XF\Util\File.php:186
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fcl...', 'C:\\xampp\\htdocs...', 186, Array)
#1 src\XF\Util\File.php(186): fclose(Resource id #139)
#2 src\XF\Service\Attachment\Preparer.php(86): XF\Util\File::copyFileToAbstractedPath('C:\\xampp\\htdocs...', 'data://attachme...')
#3 src\XF\Service\Attachment\Preparer.php(23): XF\Service\Attachment\Preparer->insertDataFromFile(Object(XF\FileWrapper), 1, Array)
#4 src\XF\Attachment\Manipulator.php(170): XF\Service\Attachment\Preparer->insertAttachment(Object(XF\Attachment\Post), Object(XF\FileWrapper), Object(XF\Entity\User), 'xx...')
#5 src\XF\Pub\Controller\Attachment.php(89): XF\Attachment\Manipulator->insertAttachmentFromUpload(Object(XF\Http\Upload), NULL)
#6 src\XF\Mvc\Dispatcher.php(350): XF\Pub\Controller\Attachment->actionUpload(Object(XF\Mvc\ParameterBag))
#7 src\XF\Mvc\Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Upload', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Attachment), NULL)
#8 src\XF\Mvc\Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Attachment), NULL)
#9 src\XF\Mvc\Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src\XF\App.php(2184): XF\Mvc\Dispatcher->run()
#11 src\XF.php(391): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Last edited: