milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

Fields of metaColumns not emptied upon deletion #130

Closed hervehobbes closed 11 years ago

hervehobbes commented 11 years ago

Hello,

When you are using the metaColumns fields and when you use : $this->Product->deleteFiles($id);

the fields pointed by metaColumns are not emptied.

bye

milesj commented 11 years ago

What's your use case?

The method does what it says, it simply deletes the files. I could make it wipe all the meta also, but wouldn't the record be updated with a new image at some point? Or the record deleted completely?

hervehobbes commented 11 years ago

Isn't the field containing the file/picture emtpied ? If that's the case it sounds logical to, also, empty the other fields.

milesj commented 11 years ago

Right, but in what instance would you remove images from a record, but leave the record?

milesj commented 11 years ago

Added.