• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP move_uploaded_file() permission issue

SONYFX

Senior member
I have employed a page to upload files on my website.

But I'm having problems using it. When the file is uploaded to the 'tmp' directory of my account, and when I use the function 'move_uploaded_file()' to move this file into the actual directory, it returns the error

move_uploaded_file(ABC.jpg): failed to open stream: Permission denied
move_uploaded_file(): Unable to move '/tmp/phpF5SqzC' to 'ABD.jpg'

please help me what should now I do with this..

I also tried changing the mode of the 'temp' directory to 777, but it still didn't work.
 
Actually, I think the permissions problem is not with your tmp directory, but rather whatever directory you're trying to move it to.
 
Back
Top