WordPress.org

Support

Support » How-To and Troubleshooting » Ownership of folders created in /wp-content/uploads/

Ownership of folders created in /wp-content/uploads/

  • WordPress creates dated folders for uploaded images in this path:
    /wp-content/uploads/
    For example:
    /wp-content/uploads/2006/07

    I wanted to FTP some images directly into the folders that WordPress already created but I did not have permission to enter these folders. I see in my file manager the ownership is for user “httpd” not “myusername”.

    Is there a setting somewhere that can change how WordPress creates folders so that I can have access through FTP?

Viewing 5 replies - 1 through 5 (of 5 total)
  • That is controlled by your host, not WP. Best you can do is try chmodding…

    Thanks for the response.

    I can’t chmod because I (myusername) don’t have permission to change/access these WordPress created folders owned by user “httpd” in anyway. I asked my web host’s opinion and they replied:

    “As for the uploads directory, it was likely created or edited by the WordPress script, which runs as Apache’s user httpd. This can sometimes cause the folders to be owned by httpd, and not your user.”

    I would like access to access these folders to delete files or add images directly. Also when I tried to upload a non-image file through WordPress it would not let me, saying, “File type does not meet security guidelines. Try another.”

    Yeah, you’re going to have a problem using both ftp and php to manage anything in uploads/. You can try deleting the directories and re-creating them with your ftp client, then chmod 777 on the directories (so httpd owner can still write into it), but any file you upload with WP/php will be a different owner then if ftp’ed. Might get you closer, though.

    I don’t have permission to delete it either. Oh well, I guess it’s just something I have to live with. Next time I will make the folders ahead of time so WP won’t create it.

    Thanks for your help.

    Some have been able to delete via their host’s supplied “File Manager” interface (then gone in and created directories with ftp and chmodded to 777).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ownership of folders created in /wp-content/uploads/’ is closed to new replies.