Page 1 of 1

Cannot Move attachments stored in database schema to disk

Posted: 17 Feb 2017, 14:16
by mcmo
Hi All
I tried the system utility "Move attachments stored in database schema to disk files." but it does not work.
MantisBT Administration - Moving Attachments.png
MantisBT Administration - Moving Attachments.png (22.86 KiB) Viewed 6471 times
it states that no project was selected
MantisBT Administration - Moving Attachments - Error.png
MantisBT Administration - Moving Attachments - Error.png (8.11 KiB) Viewed 6471 times
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

Re: Cannot Move attachments stored in database schema to dis

Posted: 17 Feb 2017, 14:29
by atrol
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)

Re: Cannot Move attachments stored in database schema to dis

Posted: 27 Feb 2017, 14:46
by mcmo
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.

Re: Cannot Move attachments stored in database schema to dis

Posted: 27 Feb 2017, 15:17
by atrol
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

Posted: 17 Mar 2017, 16:11
by mcmo
thanks it has worked fine.
it seems that this is not described in the admin manual.