Cannot Move attachments stored in database schema to disk

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mcmo
Posts: 11
Joined: 18 Oct 2016, 07:04

Cannot Move attachments stored in database schema to disk

Post 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 5631 times
it states that no project was selected
MantisBT Administration - Moving Attachments - Error.png
MantisBT Administration - Moving Attachments - Error.png (8.11 KiB) Viewed 5631 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
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot Move attachments stored in database schema to dis

Post 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)
Please use Search before posting and read the Manual
mcmo
Posts: 11
Joined: 18 Oct 2016, 07:04

Re: Cannot Move attachments stored in database schema to dis

Post 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.
Attachments
Moving Attachments - Path defined.png
Moving Attachments - Path defined.png (29.61 KiB) Viewed 5583 times
Marc
--------------------------------
Mantis: 2.1.0
PHP: 5.5.9
SQL: MySQL 5.7.16
OS: Ubuntu Linux 14.04.3
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot Move attachments stored in database schema to dis

Post by atrol »

You have to add the following line to config_inc.php

Code: Select all

$g_file_upload_method = DISK;
Please use Search before posting and read the Manual
mcmo
Posts: 11
Joined: 18 Oct 2016, 07:04

Re: Cannot Move attachments stored in database schema to dis

Post by mcmo »

thanks it has worked fine.
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
Post Reply