Duplicate filename UTF8 Problems

au lait

Well-known member
Affected version
XF2
If you use such a valid filename Ağyar için ey bi-vefa (Eski yazı) - Numan Ağa # Tanburi, Musahib#i Şehryari - Muhayyer Sünbüle - v1.pdf for an attachment you get

Received invalid UTF-8 for string column [filename]

#0 src/XF/Mvc/Entity/Entity.php(575): XF\Mvc\Entity\Entity->_castValueToType('A\xC4\x9Fyar i\xC3\xA7in ey...', 'filename', 5, Array)
#1 src/XF/Service/Attachment/Preparer.php(34): XF\Mvc\Entity\Entity->set('filename', 'A\xC4\x9Fyar i\xC3\xA7in ey...', Array)
#2 src/XF/Service/Attachment/Preparer.php(16): XF\Service\Attachment\Preparer->insertDataFromFile(Object(XF\FileWrapper), 1, Array)
#3 src/XF/Attachment/Manipulator.php(170): XF\Service\Attachment\Preparer->insertAttachment(Object(XF\Attachment\ConversationMessage), Object(XF\FileWrapper), Object(DBTech\eCommerce\XF\Entity\User), '145165a0b5db295...')
#4 src/XF/Pub/Controller/Attachment.php(86): 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(328): XF\App->run()
#10 index.php(13): XF::runApp('XF\\Pub\\App')
#11 {main}
 
Back
Top Bottom