File Uploading not Working MantisBT 2.22.0 on Windows Server
Posted: 07 Oct 2019, 11:53
Hello guys
I am in need of some help. I have a MantisBT 2.22.0 instance running on Windows Server 2012 R2 and everything is working fine except file uploads above 30 MB .
This is my config_inc.php file:
# --- Attachments / Upload ---
$ g_allow_file_upload = ON;
$ g_file_upload_method = DISK;
$ g_max_file_size = 2048000000;
$ g_preview_attachments_inline_max_size = 256 * 1024;
# $ g_allowed_files = ''; '
# $ g_disallowed_files = '';
$ g_absolute_path_default_upload_folder = "C: \ inetpub \ wwwroot \ develop \ uploads \ projects \\";
$ upload_tmp_dir = 'C: \ mantis \ tmp \\';
The file upload is working fine if the file is under 30 MB, but I need to upload much larger files.
The permissions seem correct too for the upload folder by project.
Sometimes I receive the following error message while trying to attach a file:
" The server responded with code 0 "
But other times I receive the following message:
" 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. "
My PHP.ini settings is allowing files above 2048 MB to be uploaded and there are no errors or warnings while checking mantisbt / admin / check / index.php.
Does anybody have faced a similar situation?
Thank you!
I am in need of some help. I have a MantisBT 2.22.0 instance running on Windows Server 2012 R2 and everything is working fine except file uploads above 30 MB .
This is my config_inc.php file:
# --- Attachments / Upload ---
$ g_allow_file_upload = ON;
$ g_file_upload_method = DISK;
$ g_max_file_size = 2048000000;
$ g_preview_attachments_inline_max_size = 256 * 1024;
# $ g_allowed_files = ''; '
# $ g_disallowed_files = '';
$ g_absolute_path_default_upload_folder = "C: \ inetpub \ wwwroot \ develop \ uploads \ projects \\";
$ upload_tmp_dir = 'C: \ mantis \ tmp \\';
The file upload is working fine if the file is under 30 MB, but I need to upload much larger files.
The permissions seem correct too for the upload folder by project.
Sometimes I receive the following error message while trying to attach a file:
" The server responded with code 0 "
But other times I receive the following message:
" 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. "
My PHP.ini settings is allowing files above 2048 MB to be uploaded and there are no errors or warnings while checking mantisbt / admin / check / index.php.
Does anybody have faced a similar situation?
Thank you!