We are aware it's possible to set the file permission with PHP, however it's not typically needed. This is the first time this issue has come up. Default file permissions are set based on the owner of the files, and typically this default 'owner' has the correct file permissions assigned to them (644).
If this was working before, and now it is not it means something changed with your web host. Your web host has changed the defaults. The script hasn't changed, your web host changed something on their end.
For example if your web server is running apache then by default file uploads would be 'owned' by apache and receive apache's default file permissions. Typically this is 644.
So this has to do with the settings your host has on the user that owns files that are uploaded by default. They had to have changed something for this issue to start happening.
Posted 13 years ago on Thursday February 10, 2011 |
Permalink