Project:ImageAPI
Version:5.x-1.0-rc1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When creating directories and files, the permissions need to be set so that the web server can read them. This is handled properly when creating new directories, but not when creating new files.

I think that the proper place to do this is in imageapi_image_close, rather than hook_image_close, because the file permissions issue seems more like a generic web server issue, than a specific toolkit issue. If you do it there, then it only needs to be done in one place, than but maybe you have other ideas.

Patch is attached.

AttachmentSize
chmod.patch1.45 KB

Comments

#1

doh, try this one instead, it changes the perms of the destination file and NOT the source file.

AttachmentSize
236857.patch 1.44 KB

#2

Status:active» closed (fixed)

committed to HEAD.

#3

Status:closed (fixed)» fixed

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.