Thumbs receive a "600" chmod

Please, excuse my english...

Everythings works well with my new installation, except for the thumbnails: they are created in the "cache" directory, but with a chmod of "600" (while the directory itself is "777"), so they are inaccessible from the web...

Any idea?

Thanks alot!

Tim

Comments

  • trisweb Administrator
    Well, sounds like a weird default for your server...

    The simple solution is to put this line in i.php:

    `chmod($newfile, 0644);`

    right after the imagejpeg(...) line at the end of the file (around line 91).

    That permission might not be the right one... if it doesn't work try others.

    FYI, I'll probably put this in the next release as a precaution from this happening again.
  • chmod($newfile,0644); [without a space after the comma] works ! :)

    trisweb, thanks alot for your precious help!

    And bravo for this extraordinary project!

    Tim
  • trisweb Administrator
    Great, it's in the codebase from now on. You shouldn't need to worry about it ever again.

    Thanks for this bug report. Glad to be of help!
Sign In or Register to comment.