function additional_init_actions($args = array()) { $auth = @$args['authenticator']; $this->upload_sid = _get_disco_async_upload_session($auth); $constraints = array('mime_type' => $this->acceptable_types, 'extension' => $this->acceptable_extensions, 'max_size' => $this->max_file_size); reason_add_async_upload_constraints($this->upload_sid, $this->name, $constraints); if (isset($args["head_items"])) { $this->get_head_items($args["head_items"]); } _reason_upload_handle_entity($this, "asset", "reason_get_asset_filesystem_location", "reason_get_asset_url"); return parent::additional_init_actions($args); }
function additional_init_actions($args = array()) { $error = "The 'AssetUpload' plasmature type is deprecated. Use the " . "new base 'upload' type "; if (defined("REASON_HTTP_BASE_PATH")) { $error .= "or the 'ReasonUpload' type "; } $error .= "instead."; trigger_deprecation($error, 3); return parent::additional_init_actions($args); }