WAMP + MantisBT File upload Configruation

the file upload feature is off by default in WAMP + MantisBT. To enable this, follow these steps:

1> enable fileinfo extention in php of WAMP

     1) find the php.ini in WAMP php folder, and uncomment the line: extension=php_fileinfo.dll

     2) set the file upload config sections in php.ini

       

upload_tmp_dir = "C:/phpupload/tmp" 

upload_max_filesize = 10M

max_file_uploads = 20

Note: the upload dir can be replaced by your real path

2> add or edit the config sections in MantisBT

     1) find the config_inc.php in mantisbt conifg folder. add the  following lines:

# file upload configuration
  $g_allow_file_upload	= ON;
  $g_file_upload_method	= DISK; # or DATABASE
  $g_absolute_path_default_upload_folder = 'C:/phpupload/tmp/';
  $g_max_file_size		= 10000000;	# 10M
  $g_preview_attachments_inline_max_size = 256 * 1024;
  $g_allowed_files		= '';		
  $g_disallowed_files		= '';		

Note: the upload dir can be replaced by your real path

Well Done. restart services and play around.

Finally, a userful check in mantisbt is accessing http://<server>/admin/check/index.php  whenever you got a exception.

猜你喜欢

转载自blog.csdn.net/xylz_yang/article/details/83108402
今日推荐