About uploading files to the folder under the specified directory when creating a new project
Posted: 17 Feb 2022, 02:50
I have configured Mantis to store attachments on disk in the configuration file config_inc.php.
- $g_file_upload_method = DISK;
- $g_absolute_path_default_upload_folder = 'C:\AppServ\www\mantis\datafile\\';
With this configuration, the file has now been successfully attached to the problem.
However, I want each project to need to manage attachments in a separate folder, so in the step of updating project information, the Upload File Path field adds its own folder name, for example to “C:\AppServ \www\mantis\datafile\demo", but clicking the "Add Project" button results in the error message "Invalid upload path. Directory either does not exist or not writable to webserver.”
Is there a way to create a separate folder to store project attachments right at the project creation step!?
PS:
- Full permissions for the folder “'C:\AppServ\www\mantis\datafile” have been granted to everyone.
- If you create your own folder first in the operating system, the above message will not appear.
- $g_file_upload_method = DISK;
- $g_absolute_path_default_upload_folder = 'C:\AppServ\www\mantis\datafile\\';
With this configuration, the file has now been successfully attached to the problem.
However, I want each project to need to manage attachments in a separate folder, so in the step of updating project information, the Upload File Path field adds its own folder name, for example to “C:\AppServ \www\mantis\datafile\demo", but clicking the "Add Project" button results in the error message "Invalid upload path. Directory either does not exist or not writable to webserver.”
Is there a way to create a separate folder to store project attachments right at the project creation step!?
PS:
- Full permissions for the folder “'C:\AppServ\www\mantis\datafile” have been granted to everyone.
- If you create your own folder first in the operating system, the above message will not appear.