Hi All
I tried the system utility "Move attachments stored in database schema to disk files." but it does not work.
it states that no project was selected
However there's no checkbox or selector to use in the tool itself to select the project; and selecting the project in the main selector (top right corner) does not help.
What am I not seeing or doing wrong?
I am using MantisBT v2.1.
Thanks in advance for your help
Cannot Move attachments stored in database schema to disk
Moderators: Developer, Contributor
Cannot Move attachments stored in database schema to disk
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
Re: Cannot Move attachments stored in database schema to dis
You have to set a path for the attachments.
You can set it per project (check the project setting) or for the whole instance (set $g_absolute_path_default_upload_folder)
You can set it per project (check the project setting) or for the whole instance (set $g_absolute_path_default_upload_folder)
Re: Cannot Move attachments stored in database schema to dis
Hi
thanks for your answer.
I tried to set that value in the database but it appears that it can only be set in config_inc.php
I found no field to configure this per project in the project settings view.
I set this : $g_absolute_path_default_upload_folder = '/var/www/html/MantisBT_FilesExport/'; after creating that folderm assigning it to the correct user and changing the read and write rights.
However I am still getting the same error as reported in the 1st post of this thread.
thanks for your answer.
I tried to set that value in the database but it appears that it can only be set in config_inc.php
I found no field to configure this per project in the project settings view.
I set this : $g_absolute_path_default_upload_folder = '/var/www/html/MantisBT_FilesExport/'; after creating that folderm assigning it to the correct user and changing the read and write rights.
However I am still getting the same error as reported in the 1st post of this thread.
- Attachments
-
- Moving Attachments - Path defined.png (29.61 KiB) Viewed 5610 times
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
Re: Cannot Move attachments stored in database schema to dis
You have to add the following line to config_inc.php
Code: Select all
$g_file_upload_method = DISK;
Re: Cannot Move attachments stored in database schema to dis
thanks it has worked fine.
it seems that this is not described in the admin manual.
it seems that this is not described in the admin manual.
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3