网站根目录下建upload目录,然后修改config_inc.php如下
# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DISK; # or DATABASE
$g_absolute_path_default_upload_folder = 'upload/'; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 20000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_files = ''; # extensions comma separated
# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DISK; # or DATABASE
$g_absolute_path_default_upload_folder = 'upload/'; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 20000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_files = ''; # extensions comma separated