ColdFusion 10 is currently running, but this problem has been a constant problem for many years, possibly on all CF6 / 7.
As part of the CMS, part of the verification is that the images are uploaded to the directory, for example.
<cffile action="UPLOAD" filefield="image" destination="media/img/" nameconflict="MAKEUNIQUE" accept="image/jpeg,image/gif,image/pjpeg" mode="644">
They are then read using a script that checks the sizes.
If all goes well, the script process moves it to the destination directory, for example.
<cffile action="MOVE" source="media/img/imagename" destination="media/img/#hexdir#/imagename" mode="644">
If it fails, it should be deleted.
<cffile action="DELETE" file="media/img/imagename">
From time to time, the directory / img / becomes read-only; the file cannot be written. But I can not determine the reason for this.
Is there a mistake that I don't know about? any ideas?
thanks
Additional Information
I decided to use CFDirectory to change the folder resolution in the script, so it can be quickly resolved if this happens again.
I found two questions
On UNIX and Linux, cfdirectory action = "list" does not return any information in the mode column.
Besides
Using a rename folder with permissions of 644,777,111 does not seem to affect the permissions of the folder that I can view in FileZilla.
Could this mean that CF could not change the resolution of the folder in the first place?