File Permissions
douggreen - March 20, 2008 - 18:21
| Project: | ImageAPI |
| Version: | 5.x-1.0-rc1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
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.
| Attachment | Size |
|---|---|
| chmod.patch | 1.45 KB |

#1
doh, try this one instead, it changes the perms of the destination file and NOT the source file.
#2
committed to HEAD.
#3
#4
Automatically closed -- issue fixed for two weeks with no activity.