uploading images to your WordPress blog

We have received quite a few Help Desk inquiries recently regarding the uploading of image files using the built-in upload feature in WordPress. Since WordPress version 2.0, WordPress can archive images in blog posts for you automatically. All you need to do is upload them into the post you’re writing and WordPress will do the rest.

In order for this convenient feature to work, you need the ‘wp-content‘ directory in your WordPress blog to be writeable by the server. The way to accomplish this is by changing the file writing permissions (CHMOD) on the ‘wp-content‘ directory to 777. This can be done a few ways:

FTP:

  1. With your FTP program, establish a connection to the server.
  2. Navigate to the ‘wp-content‘ directory.
  3. Change the file writing permissions on this directory to 777. If you are unsure of how to do this with your FTP program, search the web for ‘CHMOD‘ and the name of your FTP program. Your FTP program may also allow you to make any sub-directories writeable by the server. By default, WordPress versions 2.0 and above creates year and month sub-directories that organizes images corresponding to the year and month when the blog post was made. If you have this option available in your FTP program, select it to make all sub-directories of the ‘wp-content‘ directory writeable by the server as well.

Plesk File Manager (Laughing Squid customers)

  1. Log into your control panel.
  2. Select the domain name where WordPress is installed.
  3. Select File Manager.
  4. Navigate to the root directory where you have WordPress installed and locate the ‘wp-content‘ directory.
  5. Under Permissions, click on the permissions (rwx r-x r-x, et al.) for the ‘wp-content‘ directory.
    NOTE: You may have to scroll right slightly to see the Permissions column.
  6. Put a check in every checkbox, then click OK.
  7. The permissions for ‘wp-content‘ should now read rwx rwx rwx, making this directory writable by the server.

Command Line
For security reasons, Laughing Squid does not allow shell access.

  1. Go to your WordPress main directory, with a command like cd wordpress/
  2. Enter chmod -R 777 wp-content

You can find more info about changing file permissions in the WordPress Codex:
http://codex.wordpress.org/Changing_File_Permissions

After you have successfully changed the file writing permissions on the ‘wp-content‘ directory, you will be able to use the upload feature in WordPress to import images (or files) into your blog posts. Here is more info from the Codex about using the upload feature: http://tinyurl.com/qhspm