17488 Posts in 4473 Topics by 1978 members
| Go to End | ||
| Author | Topic: | 6435 Views |
-
Re: Image not shown on pages and in administraton

12 September 2008 at 8:49pm Last edited: 12 September 2008 8:51pm
-
Re: Image not shown on pages and in administraton

16 September 2008 at 6:49pm Last edited: 16 September 2008 6:57pm
Hi,
I had propably the same problem. The upload worked fine but even when I had changed the folder permissions the new uploaded file had only owner rw permissions and it didn't show in the internet. The resampling worked, but the original image could not be used. The owner was the same than the owner of the whole web folder.
I was able to fix this by adding one line of code to Folder.php in sapphire/filesystem.
In method addUploadToFolder I added chmod-command inside this if:if(file_exists($tmpFile['tmp_name']) && copy($tmpFile['tmp_name'], "$base/$file")) {
// Update with the new image
chmod("$base/$file", 0755);
return $this->constructChild(basename($file));
}
| 6435 Views | ||
| Go to Top |

