Skip to content

Deleting Existing Uploads

josegonzalez edited this page Sep 13, 2010 · 1 revision

Sometimes you may need to delete an uploaded file, but not the record (say delete an offending avatar but not the user record itself). To do this, flag the file for deletion by setting data[Model][filename][remove] to something non-empty, e.g. TRUE. The uploaded file including possible thumbnails will then be deleted together with adherent database fields upon save. Note that the record will be preserved, only the file meta-data columns will be reset.

Clone this wiki locally