Hi, maybe it's just me, but...
I saw a couple of forum posts concerning problems uploading user-images. Here is mine:
I managed to activate the upload function for every user (yay!), but everytime someone tries to upload an avatar, he/she gets a message in the following form (as a flash on pressing the submit-button):
File copy failed: source file does not exist.
Failed to upload the picture image; the avatars directory doesn't exist.
That confuses me a bit, so i looked in my log, there is a message detailing that issue:
Type file
Date Thursday, April 13, 2006 - 09:06
User DangerMouse
Location /?q=user/1/edit
Message For /tmp/phphEk8s5 the system thinks its MIME type is while the user has given image/png for MIME type
So can anybody figure out what this is about?
My thoughts about that are as follows:
- It says, that the source file does not exist, maybe it can't be uploaded to the server, so i checked the permissions of the tmp-directory: writeable by the webserver.
- It says the destination folder does not exist, so i checked its permission: writeable by the webserver.
- Maybe drupal can not find the paths i gave it in the configuration, so i checke them too: my picture image path inside the files-directory is avatars, this directory exists and is writeable by the webserver, the file system path for the files is 'files', and since i wish to use the public download method, i gave the proper permissions to it and put the relative path (just 'files') in the configuration. The temporary path is also relative and it is named 'tmp' and has also the proper permissions.