I've installed Drupal, everything seems to be running properly; however, when I try and upload a picture for my profile, I get the following error:

* The selected file sites/default/files/tmp/2sexy4fur_0.jpg could not be uploaded, because the destination is not properly configured.
* Failed to upload the picture image; the pictures directory doesn't exist or is not writable.

What do I need to do to correct this?

Comments

theabacus’s picture

One of two things is happening, as the error suggests.

Does the directory exists? Go to [drupal_root]/sites/default/files/tmp. Does the folder does exist, then it is a permissions problem. Check the permissions on the folder. It should be 775 or 777..

quasarfleet’s picture

I tried that. I set the 'tmp' folder, the 'pictures' folder (which is in the 'files' folder alongside 'tmp'), and also the 'files' folder itself all too chmod 777. Same error. Any other suggestions?

quasarfleet’s picture

Shameless bump... Anyone else have any suggestions?

joebd_man’s picture

I was getting the identical error message, trying to post a new avatar picture while deleting the existing one.

What eventually worked was to do it in separate steps: First, check the box to delete existing picture, and "Submit."

Then, browse for and upload the new picture, and "Submit." No error.

ardnet’s picture

By the way, I had the same problem too like quasarfleet.

Anyway,
The problem with my issue is, I can not upload the profile picture in the first place.
And seems no checkbox showing up at all in my case.
So how can I check the box for deleting the existing picture like u suggested?

But there's something that I noticed,
when I upload the picture for profile (even though showing that error message), the pictures it does appear in the tmp folder, but the permission of that picture file is not 777.

I already set the permission for the folder like this: chmod -R 777 tmp, so i assume what ever the files that exist in that tmp folder also have permission of 777.

But even though i already upload the picture several times, still the permission of the picture file is not 777.

Is this could be the problem?
Any thoughts?

Thanks