Why am I not able to upload a simple image picture in
my user page ?

+++ Not possible to upload an image
++++ Not possible to change storage directory
+++++ Not possible to change default location of image picture from the root.
++++++ Not possible to even Know the database table or other type of location for editing manually

IN short No profile Picture in DRUPAL

I am sure the answer must be obviouis to the Gurus, yet .....

Here are the unanswered topics

http://drupal.org/node/67945
http://drupal.org/node/67419
http://drupal.org/node/22271
http://drupal.org/node/67850
http://drupal.org/node/67338

Cheers
Shred

+++++++++++++++++++
A great deal for business
http://affiliatesexcel.com

Comments

heine’s picture

Go to drupal root, make a directory files, next make the directory files/pictures.

Set both directories to rwxrwxrwx, try again.

Edited to add: please make one post with all the information. Permissions can be made stricter after initial success.
--
The Manual | Troubleshooting FAQ | Tips for posting | Make Backups! | Consider creating a Test site.

valley-1’s picture

Hello,

First of all many thanks for the response.

I think the files/pictures are where you have suggested they should be.

I have installed DRUPAL in the root which is /paratlan-www

sothe directories are /paratlan-www/ files/pictures. and the directories are set to 777

If you see http://paratlane.net and right click the profile image in a post it shows

http://www.paratlane.net/picture-1.jpg

If you FTP the picure to files or files/pictures it won't show.

One image Imag0075.jpg in the files/pictures directory don't show

If you need ftp access please let me know

Cheers
Shred

A great deal for business.
http://affiliatesexcel.com

heine’s picture

What is the value of file system path in administer » settings (url: admin/settings) under File system settings?
--
The Manual | Troubleshooting FAQ | Tips for posting | Make Backups! | Consider creating a Test site.

valley-1’s picture

currently it shows just "files" both for files system path and Temporary directory

A great deal for business.
http://affiliatesexcel.com

heine’s picture

The setting for your pictures directory is wrong:

The current entry in this field is http://paratlane.net/files/pictures/

What errors do you get when changing? If you really want to edit via the database you need to look at the variable table (user_picture_path).
--
The Manual | Troubleshooting FAQ | Tips for posting | Make Backups! | Consider creating a Test site.

valley-1’s picture

Hello Heine,

I had located and removed the current entry http://paratlane.net/files/pictures/
from the variable and replaced by pictures.

This entry was there from a HOW To from BRYGHT site which mentioned you can
enter a full URL like that. Perhaps I am wrong about the field , I can't remember.

I have tried by uploading a new image to the picture directory which now correctly appear
in the summary and user profile pages.

Could you please let me know the variable for the location of the default picture file
as it is currently (and perhaps by mistake) in the root and can't be changed too.

It is also intriguing why the database won't be overwritten by the form input.

Many thanks for your prompt help. DRUPAL is really a great team and a great software!

+++++++++++++++++++++++++++
A great deal for business.
http://affiliatesexcel.com

graper’s picture

I am working on a windows server. I was unable to get profile pictures to upload and tried trackingi t down, made some small diagnostic hacks to image.inc and user.module. I started seeing errors where it would say that the file could not be found in c:\windows\temp. I worked on this for 2 days and on the second day, I looked at the file system settings in the admin -> settings area. I saw the temp dir setting and looked at the help underneath it. Previously I had just files/temp, I even tried just temp, it created the folders but it still didn't work. I decided to put in /files/temp as if it's just a string variable and just gets added to the end of the domain in some include file or module, but processed somehow in some other file or module and caused a different. Putting in /files/temp allows the uplaoded profile pictures to work properly. may want to put in /files/temp for your temp folder and see if that fixes things.

This would mean that drupal is not uploading the files properly to the temp folder, and therfore the file does not exist for checking, providing all kinds of problems.

On a unix server putting in just tmp will make the files upload to /tmp from the root of the drive

hope this helps

sepeck’s picture

On a winows server the account that is running under the webserver will need to have NTFS permissions on the TEMP folder whereever that may be (This is generally not a default thing). Your web server temp folder should also not be on the C drive where you OS is, you should create a special one for just this purpose and give the web server account the permissions it's needs to the folder (d:\temp or similiar)

At least that's the way it works fo rme.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide