Can't upload media – "The uploaded file could not be moved to…"
-
Hello!
When I try to upload Media Files to WordPress, I get the following error:
“picture.jpg” has failed to upload due to an error
The uploaded file could not be moved to /server-root-folder/wp-content/uploads/2011/12.I have tried a lot of things and none of them work!
The solution with “CHMOD 777 uploads/” IS NOT the one I would like to use because it could give FULL ACCESS to an attacker and could give permissions to inject files in that folder.My suggestion is that the Media Uploading code should be done in a way that it uploads the files through FTP, just like when installing Plugins, Themes etc.
My Apache runs on httpd:httpd, my FTP account is name:name (example).
Running Apache with the same user as the FTP user is a security risk so this is another thing I don’t want to try.Is there any solution (preferrably from a WordPress coder) for this error?
- The topic ‘Can't upload media – "The uploaded file could not be moved to…"’ is closed to new replies.