/**
  * After upload, extract the uploaded bundle.
  * @return
  */
 function onAfterUpload()
 {
     // Extraction is only performed if the holder is present and the uploaded
     // file is being put in that folder.
     if (!($folder = DataObject::get_one("Folder", "\"Filename\"='assets/" . DynamicTemplate::$dynamic_template_folder . "'"))) {
         return;
     }
     if ($this->owner->ParentID != $folder->ID) {
         return;
     }
     $errors = array();
     DynamicTemplate::extract_bundle($this->owner, &$errors);
     if (count($errors) > 0) {
         die("The following errors occurred on upload:<br/>" . implode("<br/>", $errors));
     }
 }