File upload not showing

Get help from other users here.

Moderators: Developer, Contributor

File upload not showing

Postby ciuly » Apr 07, 2012 10:42 am

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.
ciuly
 
Posts: 3
Joined: Apr 07, 2012 10:25 am

Re: File upload not showing

Postby atrol » Apr 07, 2012 3:30 pm

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: File upload not showing

Postby ciuly » Apr 07, 2012 5:02 pm

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.
ciuly
 
Posts: 3
Joined: Apr 07, 2012 10:25 am

Re: File upload not showing

Postby atrol » Apr 09, 2012 8:00 am

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
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: File upload not showing

Postby ciuly » Apr 09, 2012 10:36 am

good one. Thank ;)
ciuly
 
Posts: 3
Joined: Apr 07, 2012 10:25 am


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron