Configuring file registration

From ARK
Revision as of 10:40, 12 June 2008 by 86.129.124.255 (talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First set two settings in the settings.php

 $file_upload_dir = $ark_dir . '/data/upload/';
 $file_registration_dir = $ark_dir . '/data/registered/';

Now add a field to handle the files in field_settings.php

 $conf_field_file =
   array(
       'dataclass' => 'file',
       'classtype' => 'recflag',
       'alias_tbl' => 'cor_lut_attributetype',
       'alias_col' => 'attributetype',
       'alias_src_key' => 'recflag',
       'alias_type' => '1',
       'editable' => TRUE,
       'hidden' => FALSE,
       'add_validation' => $attr_add_validation,
       'edt_validation' => $attr_edt_validation
 );