josegonzalez/cakephp-upload — pull request #175 by PhantomWatson (2013-10-29 21:12:55+00:00)
Title: Remove files from UploadBehavior::__filesToRemove after unlinking

This prevents the plugin from attempting to delete a file a second time
if an associated media file is deleted before the main model is saved.
Otherwise, the plugin will attempt to unlink the files in
UploadBehavior::__filesToRemove in UploadBehavior::afterDelete() and
then again in UploadBehavior::afterSave().