Add pre and post delete event for the field localfile