Page 1 of 1

[Help] Attachments file and upload files

Posted: 06 Feb 2023, 18:14
by jlarreyna
Hello, I have a problem uploading images/files when generating an incident

Config.ini

Code: Select all

$g_allow_file_upload    = ON;
$g_file_upload_method   = DISK;
$g_dropzone_enabled = ON ;
$g_absolute_path_default_upload_folder = 'C:\SitiosWeb\Mantis\uploads';
$g_max_file_size        = 5000000;
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files        = '';
$g_disallowed_files     = '';

Error:
APPLICATION ERROR #503

Invalid upload path. The directory does not exist or the web server cannot write to it.

Use the "Back" button of your web browser to return to the previous page. There you can correct the problems that have been identified in this error notification or select another action. You can also click on an option in the menu bar to go directly to a new section.


IIS in windows server 2019
php versión 8.2
mantisbt 2.25


Thanks!

Re: [Help] Attachments file and upload files

Posted: 07 Feb 2023, 10:42
by cas
you forgot the trailing slash :mrgreen:

Re: [Help] Attachments file and upload files

Posted: 07 Feb 2023, 12:39
by atrol
jlarreyna wrote: php versión 8.2
As a side note: PHP 8.2 is not supported in MantisBT 2.25.x.

Re: [Help] Attachments file and upload files

Posted: 09 Feb 2023, 12:12
by jlarreyna
I made a change of the php version and added the slash and still with the same problem.
Can you think of another alternative?
thanks

Re: [Help] Attachments file and upload files

Posted: 09 Feb 2023, 14:31
by cas
one more question:
Can the web server write to it?