• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Upload Issue

Joe Link

Well-known member
#1


  1. copy(/home/****/***/******/internal_data/attachments/29/29693-ac0d403de6bad112a19a0d4a2977a4fc.data) [function.copy]: failed to open stream: Permission denied
    1. XenForo_Application::handlePhpError()
    2. copy() in XenForo/Helper/File.php at line 235
    3. XenForo_Helper_File::safeRename() in XenForo/DataWriter/AttachmentData.php at line 264
    4. XenForo_DataWriter_AttachmentData->_moveFile() in XenForo/DataWriter/AttachmentData.php at line 223
    5. XenForo_DataWriter_AttachmentData->_writeAttachmentFile() in XenForo/DataWriter/AttachmentData.php at line 143
    6. XenForo_DataWriter_AttachmentData->_postSave() in XenForo/DataWriter.php at line 1397
    7. XenForo_DataWriter->save() in XenForo/Model/Attachment.php at line 524
    8. XenForo_Model_Attachment->insertUploadedAttachmentData() in XenForo/ControllerPublic/Attachment.php at line 201
    9. XenForo_ControllerPublic_Attachment->actionDoUpload() in XenForo/FrontController.php at line 347
    10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    11. XenForo_FrontController->run() in /home/****/***/******/index.php at line 13
I just went to upload a photo using the non-flash uploader and this is what was returned. This was from the admin account.
 

Mike

XenForo developer
Staff member
#6
You need to check the permissions on the internal_data/ directory and all sub-directories/files within. (If in doubt, I would recommend chmodding to 0777.)

While running the file health check is useful, it's unlikely to be related to this at all.
 

Joe Link

Well-known member
#9
Well that settles it then :)

Hmm, any idea why I might be getting this error via FTP? Do I need to contact my webhost? Looks like a clue.

Command: SITE CHMOD 777 10033-2511586ed890549e4663257c0a3d1571.data
Response: 550 Could not change perms on 10033-2511586ed890549e4663257c0a3d1571.data: Operation not permitted
 

Brogan

XenForo moderator
Staff member
#10
You may need to check/change (chown) ownership of the files.
Your host should be able to help if you're not sure how to do that.