[Help] Attachments file and upload files

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jlarreyna
Posts: 2
Joined: 06 Feb 2023, 18:05

[Help] Attachments file and upload files

Post 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!
cas
Posts: 1642
Joined: 11 Mar 2006, 16:08
Contact:

Re: [Help] Attachments file and upload files

Post by cas »

you forgot the trailing slash :mrgreen:
atrol
Site Admin
Posts: 8402
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: [Help] Attachments file and upload files

Post by atrol »

jlarreyna wrote: php versión 8.2
As a side note: PHP 8.2 is not supported in MantisBT 2.25.x.
Please use Search before posting and read the Manual
jlarreyna
Posts: 2
Joined: 06 Feb 2023, 18:05

Re: [Help] Attachments file and upload files

Post 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
cas
Posts: 1642
Joined: 11 Mar 2006, 16:08
Contact:

Re: [Help] Attachments file and upload files

Post by cas »

one more question:
Can the web server write to it?
Post Reply