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?
| Comment | File | Size | Author |
|---|---|---|---|
| Picture 1.png | 18.12 KB | gaza |
Comments
Comment #1
he_who_shall_not_be_named commentedThe 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.
Comment #2
gaza commentedThanks 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?
Comment #3
he_who_shall_not_be_named commentedAs 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.
Comment #4
kost commentedI 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);Comment #5
he_who_shall_not_be_named commentedDo you use the 'private' download method?
Comment #6
he_who_shall_not_be_named commentedThis issue is reactivated to figure out the problem. Give me more info please.
Comment #7
he_who_shall_not_be_named commented