MyBB Community Forums

Full Version: Uploading Avatar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

My users are getting errors when they try to upload an avatar.

Quote:Warning: move_uploaded_file(./uploads/avatars/avatar_330.jpg): failed to open stream: Permission denied in /home/minig/public_html/forum/inc/functions_upload.php on line 228

Warning: move_uploaded_file(): Unable to move '/tmp/phpXhMY8Z' to './uploads/avatars/avatar_330.jpg' in /home/minig/public_html/forum/inc/functions_upload.php on line 228

And below this:
'The file upload failed. Please choose a valid file and try again.'

I'm running the latest version of MyBB. Please help,

MiniG
www.forum.minig.co.uk is the link
Have you CHMOD functions_upload.php to 777 or 775?
Yes. Go onto your ftp and rightclick and go onto file manager. Then change the chmod to 777, what this is, is all permisions including uploading avatars. Wink

What ftp are you using?
Thanks, I changed the CHMOD settings of the upload folder and it worked.

I'm using WS_FTP Pro
Chris Wrote:Have you CHMOD functions_upload.php to 777 or 775?

You don't need to CHMOD functions_upload.php to 777. You need to CHMOD the uploads/ and uploads/avatars/ folders to 777