ErrorException: copy(/xxx/diendan/data/attachments/0/23-3a21a6393e038dd1b63f2a88131add42.jpg): failed to open stream: Permission denied - library/XenForo/Helper/File.php:253
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(/home/roya...', '/home/royal/dom...', 253, Array)
#1 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/Helper/File.php(253): copy('/tmp/xfdYRvVp', '/home/royal/dom...')
#2 /home/royal/domains/xxx/public_html/diendan/library/XenForo/DataWriter/AttachmentData.php(265): XenForo_Helper_File::safeRename('/tmp/xfdYRvVp', '/home/royal/dom...')
#3 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/DataWriter/AttachmentData.php(224): XenForo_DataWriter_AttachmentData->_moveFile('/tmp/xfdYRvVp', '/home/royal/dom...')
#4 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/DataWriter/AttachmentData.php(160): XenForo_DataWriter_AttachmentData->_writeAttachmentFile('/tmp/xfdYRvVp', Array, true)
#5 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/DataWriter.php(1423): XenForo_DataWriter_AttachmentData->_postSave()
#6 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/Model/Attachment.php(539): XenForo_DataWriter->save()
#7 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/ControllerPublic/Attachment.php(205): XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 1)
#8 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Attachment->actionDoUpload()
#9 /home/royal/domains/xxxx/public_html/diendan/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/royal/domains/xxxx/public_html/diendan/index.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
["url"] => string(48) "http://xxxx/diendan/attachments/do-upload"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["_xfToken"] => string(8) "********"
["hash"] => string(32) "ce53fff747edb899db4c2c8e63d8202d"
["content_type"] => string(4) "post"
["key"] => string(0) ""
["content_data"] => array(1) {
["thread_id"] => string(2) "84"
}
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(9) "json-text"
["_xfUploader"] => string(1) "1"
}
}