File upload not showing

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ciuly

File upload not showing

Post by ciuly »

I've made a fresh install of mantis 1.2.10
I've set up most things but I can't seem to be able to enable file uploads.
I tried all, disk, ftp and database.

my config_inc.php contains following related info:

Code: Select all

  $g_allow_file_upload = 'ON';
  $g_file_upload_method = 'DATABASE';
  $g_file_upload_ftp_server = 'ftp.....;
  $g_file_upload_ftp_user = '.....';
  $g_file_upload_ftp_pass = '....';
  $g_max_file_size = '10240';
  $g_allowed_files = 'zip,bmp,jpg,jpeg,png,dwg,xls,wrd,txt';
  $g_disallowed_files = 'js,css,html,exe,dll,ocx';
I've change g_file_upload_method to go through all the 3 possible values to no avail.

in php I have
file_uploads=on
upload_max_filesize = 80M
upload_tmp_dir = no value

not sure what else to look at here

When I created the project, I've set the upload path and that path has 777 on it. But I am not able to see what that file path is as it's not showing up. So I am not able to change it either. That's probably a bug.

Anyway, I am not able to get the file upload fields to show up when reporting or editing an issue.

A "Attached Files" appears when viewing the issue but that's about it.

Also, I just noticed that I can no longer see the issues. But if I go to the issue link, the issue is there.

I've never used mantis before, I just heard its good, but from what I am seeing until now, this starts to look bad. The documentation doesn't help either.
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: File upload not showing

Post by atrol »

Most of your settings in config_inc.php make no sense (for example trying to set to DATABASE and setting FTP related options) and are set the wrong way (settings which are not strings must not be embedded in single quotes)
As a first step I recommend to remove all your settings.
I expect that the default settings of MantisBT will work out of the box (attachments will be stored in database)
After that you can tune the options step by step to your needs.
Please use Search before posting and read the Manual
ciuly

Re: File upload not showing

Post by ciuly »

thank you. removing all stuff there made it work indeed.
Although some config variables are clear to be either string or numeric, others are not clear if they are string or not. Well, not for a php programmer anyway.
This will have to do for now, thanks.
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: File upload not showing

Post by atrol »

ciuly wrote:Although some config variables are clear to be either string or numeric, others are not clear if they are string or not.
The easiest way is to copy the setting you want to change from config_defaults_inc.php to config_inc.php and set it the same way the default is set.
Please use Search before posting and read the Manual
ciuly

Re: File upload not showing

Post by ciuly »

good one. Thank ;)
Post Reply