18 require_once SQ_CORE_PACKAGE_PATH.
'/files/file/file_edit_fns.inc';
41 parent::__construct();
42 $this->static_screens[
'details'][
'force_unlock'] = 1;
68 function processFileUpload(&$asset, &$o, $prefix, $info=Array(), $redirect_in_limbo=TRUE, $asset_cloned=FALSE)
70 if (!parent::processFileUpload($asset, $o, $prefix, $info, $redirect_in_limbo, $asset_cloned)) {
76 if (!empty($asset->id)) {
77 $asset->setAttrValue(
'extract_metadata', TRUE);
99 check_box($prefix.
'_extract_metadata', 1, FALSE);
101 ?><em>Acquire Lock(s) on the asset to access
this option</em><?php
105 if (!SQ_TOOL_GETID3_ENABLED) {
106 ?><br/><span
class=
"sq-backend-warning">The getID3() tool is not currently enabled</span><?php
107 }
else if (!is_file(SQ_TOOL_GETID3_PATH.
'/getid3.php')) {
108 ?><br/><span
class=
"sq-backend-warning">The path to getID3() tool is invalid</span><?php
111 return $write_access;
129 if (!$asset->
writeAccess(
'attributes'))
return FALSE;
130 $extract = array_get_index($_POST, $prefix.
'_extract_metadata', FALSE);