Cannot upload attachments v2.10 or 2.11

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
radub
Posts: 4
Joined: 19 Feb 2018, 20:19

Cannot upload attachments v2.10 or 2.11

Post by radub »

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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot upload attachments v2.10 or 2.11

Post by atrol »

radub wrote: 19 Feb 2018, 20:29 After upgrading to 2.10 and subsequently to 2.11
So it worked before? Which version did you use before the upgrade?
Please use Search before posting and read the Manual
radub
Posts: 4
Joined: 19 Feb 2018, 20:19

Re: Cannot upload attachments v2.10 or 2.11

Post by radub »

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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot upload attachments v2.10 or 2.11

Post by atrol »

Do you get any errors or warnings when running admin/check/index.php ?

Have you enabled PHP fileinfo extension?
Please use Search before posting and read the Manual
radub
Posts: 4
Joined: 19 Feb 2018, 20:19

Re: Cannot upload attachments v2.10 or 2.11

Post by radub »

I don't know doing this.
Please instruct me how to do.
Thank you
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot upload attachments v2.10 or 2.11

Post by atrol »

Please use Search before posting and read the Manual
radub
Posts: 4
Joined: 19 Feb 2018, 20:19

Re: Cannot upload attachments v2.10 or 2.11

Post by radub »

PHP fileinfo extension was not enabled. I enabled it and solved the problem.
Thank you!
ngoyal
Posts: 6
Joined: 29 Mar 2018, 17:08

Re: Cannot upload attachments v2.10 or 2.11

Post by ngoyal »

@radub, can you please specify the steps to enable the PHP fileinfo extension? Thanks!
Mantis Version - 2.12.0
LucVd
Posts: 3
Joined: 07 May 2018, 08:46

Re: Cannot upload attachments v2.10 or 2.11

Post by LucVd »

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]
jishan
Posts: 1
Joined: 14 Aug 2018, 07:02

Re: Cannot upload attachments v2.10 or 2.11

Post by jishan »

Thanks LucVd
Adding extension=php_fileinfo.dll in php.ini file worked for me in IIS server :)
Post Reply