File uploads - changing from database to disk

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
kmconklin
Posts: 1
Joined: 22 Aug 2023, 12:42

File uploads - changing from database to disk

Post by kmconklin »

Running MantisBT Version 2.25.7
Ubuntu 20.04/PHP 8.1
Location of MantisBT files: /var/www/html/

File uploads have been going to database (as I assume that is the default). We would like to change that now to save to disk instead.
- I created an new folder and gave the webserver write permissions: /var/www/html/uploads/ (then chmod 755 uploads).
- I see the default settings in /var/www/html/config_defaults_inc.php, but then I see settings in /var/www/html/config/config_inc.php in the "Attachments / File Uploads" section that are all commented out.

1) If I uncomment those applicable lines in "/var/www/html/config/config_inc.php", with that then be the new settings and override what is in config_defaults_inc.php?
2) I have seen references to selecting selecting database or disk in the project settings, but I don't see that option anywhere.

Thanks,
Kevin
cas
Posts: 1768
Joined: 11 Mar 2006, 16:08
Contact:

Re: File uploads - changing from database to disk

Post by cas »

1. YES
2. Where did you find the references?
Post Reply