Using Drupal 6.0 with Img 6.x-0.10-
the image is uploaded to the server as i can see it when i ftp in however i cant view it as the file uploaded file attributes are set to 600 which means they cannot e displayed until I change the file attributes on the server.
The file views on the page as a blank(?) icon until i go the the server change the file attributes and then refresh the page.
is there something that i can set so the images are uploaded with the right file attributes?

CommentFileSizeAuthor
Picture 1.png18.12 KBgaza

Comments

he_who_shall_not_be_named’s picture

The img module has nothing to do with the files/images uploaded to the server. That operation is done by the Drupal's upload module.

Disable the img module, upload an image and try to display it with a classic img tag. See what happens then.

gaza’s picture

Thanks Vrenclanz - your right the problem was with upload module. I disabled the img module and used the upload module to attach a file then referenced it in the comment box.. , however it didnt display and is giving the file a file attribute of 600 even though all folders have permissions set to 775....
is there some permissions thing i need to set on the the upload module?

he_who_shall_not_be_named’s picture

Status: Active » Closed (works as designed)

As I know Drupal has no setting for that. You must find a php/system level setting to set the default rights for newly created files.. Unfortunately I never saw this error before.

kost’s picture

I had similar problem -- generated thumbnails did not display

To fix, I added:
chmod($img_thumbnail_path, 0644);
in function img_create_thumbnail(&$node, &$file) at line 225, before the return file_create_url($img_thumbnail_path);

he_who_shall_not_be_named’s picture

Do you use the 'private' download method?

he_who_shall_not_be_named’s picture

Status: Closed (works as designed) » Active

This issue is reactivated to figure out the problem. Give me more info please.

he_who_shall_not_be_named’s picture

Status: Active » Closed (fixed)

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 150270)