Index: branches/RC/kernel/constants.php =================================================================== diff -u -N -r9598 -r10915 --- branches/RC/kernel/constants.php (.../constants.php) (revision 9598) +++ branches/RC/kernel/constants.php (.../constants.php) (revision 10915) @@ -1,5 +1,3 @@ \ No newline at end of file + define('ITEM_FILES_PATH', (defined('WRITEBALE_BASE') ? WRITEBALE_BASE : '/kernel') . '/downloads/'); \ No newline at end of file Index: branches/RC/core/units/files/files_config.php =================================================================== diff -u -N -r9631 -r10915 --- branches/RC/core/units/files/files_config.php (.../files_config.php) (revision 9631) +++ branches/RC/core/units/files/files_config.php (.../files_config.php) (revision 10915) @@ -57,7 +57,7 @@ 'FileName' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), 'FilePath' => Array ( 'type' => 'string', 'max_len' => 255, - 'formatter' => 'kUploadFormatter', 'upload_dir' => '/kernel/downloads/', 'include_path' => false, + 'formatter' => 'kUploadFormatter', 'upload_dir' => ITEM_FILES_PATH, 'include_path' => false, 'size_field' => 'Size', 'content_type_field' => 'MimeType', 'max_size' => 50000000, 'allowed_types' => Array ('application/pdf', 'application/msexcel', 'application/vnd.ms-excel', 'application/msword', 'application/mspowerpoint', 'application/zip', 'plain/text', 'application/x-gzip'), 'not_null' => 1, 'required' => 1, 'default' => '' Index: branches/RC/core/units/email_messages/email_messages_config.php =================================================================== diff -u -N -r10194 -r10915 --- branches/RC/core/units/email_messages/email_messages_config.php (.../email_messages_config.php) (revision 10194) +++ branches/RC/core/units/email_messages/email_messages_config.php (.../email_messages_config.php) (revision 10915) @@ -66,7 +66,7 @@ // for mass mail sending 'MassSubject' => Array ('type' => 'string', 'default' => ''), - 'MassAttachment' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'upload_dir' => '/kernel/downloads/', 'max_size' => 50000000, 'default' => ''), + 'MassAttachment' => Array ('type' => 'string', 'formatter' => 'kUploadFormatter', 'upload_dir' => ITEM_FILES_PATH, 'max_size' => 50000000, 'default' => ''), 'MassHtmlMessage' => Array ('type' => 'string', 'default' => 'Type your Message Here'), 'MassTextMessage' => Array ('type' => 'string', 'default' => 'Type your Message Here'), ), Index: branches/RC/kernel/units/files/files_config.php =================================================================== diff -u -N -r9631 -r10915 --- branches/RC/kernel/units/files/files_config.php (.../files_config.php) (revision 9631) +++ branches/RC/kernel/units/files/files_config.php (.../files_config.php) (revision 10915) @@ -57,7 +57,7 @@ 'FileName' => Array ('type' => 'string', 'max_len' => 255, 'required' => 1, 'not_null' => 1, 'default' => ''), 'FilePath' => Array ( 'type' => 'string', 'max_len' => 255, - 'formatter' => 'kUploadFormatter', 'upload_dir' => '/kernel/downloads/', 'include_path' => false, + 'formatter' => 'kUploadFormatter', 'upload_dir' => ITEM_FILES_PATH, 'include_path' => false, 'size_field' => 'Size', 'content_type_field' => 'MimeType', 'max_size' => 50000000, 'allowed_types' => Array ('application/pdf', 'application/msexcel', 'application/vnd.ms-excel', 'application/msword', 'application/mspowerpoint', 'application/zip', 'plain/text', 'application/x-gzip'), 'not_null' => 1, 'required' => 1, 'default' => ''