Kesar Sisodiya Kesar Sisodiya - 7 days ago 5
PHP Question

The uploaded file could not be moved to wp-content/uploads/2015/01. issue on image upload

i am working on a wordpress website from 2 month and i have uploaded many images before but i am getting a error when uploading image and i am facing this issue after new year :- The uploaded file could not be moved to wp-content/uploads/2015/01.

there is Screenshot below:-
enter image description here

Answer

I have searched and found that the problem is from server provider.

Typically, all files should be owned by your user (ftp) account on your web server, and should be writable by that account. On shared hosts, files should never be owned by the webserver process itself (sometimes this is www, or apache, or nobody user).

Any file that needs write access from WordPress should be owned or group-owned by the user account used by the WordPress (which may be different than the server account). For example, you may have a user account that lets you FTP files back and forth to your server, but your server itself may run using a separate user, in a separate usergroup, such as dhapache or nobody. If WordPress is running as the FTP account, that account needs to have write access, i.e., be the owner of the files, or belong to a group that has write access. In the latter case, that would mean permissions are set more permissively than default (for example, 775 rather than 755 for folders, and 664 instead of 644).

You can see here how to change file permission..

Comments