The API documentation says
If you wish to add custom statuses for use by contrib modules please expand as binary flags and consider the first 8 bits reserved. (0,1,2,4,8,16,32,64,128)
However, when editing a node that has attachments, the upload module resets the file status and sets it to FILE_STATUS_PERMANENT
.
I have located where this occurs, and it is in upload_save
where the following call is beeing made file_set_status($file, FILE_STATUS_PERMANENT);
, both when the file is beeing uploaded for the first time, and when the node is beeing edited. I consider this a bug and it should be fixed
Comments