After upgrading to 2.10 and subsequently to 2.11, we are not able to upload any files no matter if they are saving to DATABASE or DISK, throwing "
INTERNAL APPLICATION ERROR
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
".
We've tried with regular sizes some tenths of k.
# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DATABASE;
$g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 5000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_file = ''; # extensions comma separated
Cannot upload attachments v2.10 or 2.11
Moderators: Developer, Contributor
Re: Cannot upload attachments v2.10 or 2.11
So it worked before? Which version did you use before the upgrade?
Re: Cannot upload attachments v2.10 or 2.11
Sorry, I've misled you: we have a 2.10 fresh installation, subsequently upgraded to 2.11. It was installed with a 5.6.30 PHP version
Re: Cannot upload attachments v2.10 or 2.11
I don't know doing this.
Please instruct me how to do.
Thank you
Please instruct me how to do.
Thank you
Re: Cannot upload attachments v2.10 or 2.11
PHP fileinfo extension was not enabled. I enabled it and solved the problem.
Thank you!
Thank you!
Re: Cannot upload attachments v2.10 or 2.11
@radub, can you please specify the steps to enable the PHP fileinfo extension? Thanks!
Mantis Version - 2.12.0
Re: Cannot upload attachments v2.10 or 2.11
Stumbled against the same problem with IIS and the solution was to add in
c:\program files\php\v7.2\php.ini
This line:
extension=php_fileinfo.dll
along with the other items in: [ExtensionList]
c:\program files\php\v7.2\php.ini
This line:
extension=php_fileinfo.dll
along with the other items in: [ExtensionList]
Re: Cannot upload attachments v2.10 or 2.11
Thanks LucVd
Adding extension=php_fileinfo.dll in php.ini file worked for me in IIS server
Adding extension=php_fileinfo.dll in php.ini file worked for me in IIS server