Page 1 of 1

Cannot upload attachments v2.10 or 2.11

Posted: 19 Feb 2018, 20:29
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

Re: Cannot upload attachments v2.10 or 2.11

Posted: 19 Feb 2018, 20:39
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?

Re: Cannot upload attachments v2.10 or 2.11

Posted: 19 Feb 2018, 20:46
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

Re: Cannot upload attachments v2.10 or 2.11

Posted: 19 Feb 2018, 21:02
by atrol
Do you get any errors or warnings when running admin/check/index.php ?

Have you enabled PHP fileinfo extension?

Re: Cannot upload attachments v2.10 or 2.11

Posted: 19 Feb 2018, 21:07
by radub
I don't know doing this.
Please instruct me how to do.
Thank you

Re: Cannot upload attachments v2.10 or 2.11

Posted: 19 Feb 2018, 21:18
by atrol

Re: Cannot upload attachments v2.10 or 2.11

Posted: 20 Feb 2018, 07:05
by radub
PHP fileinfo extension was not enabled. I enabled it and solved the problem.
Thank you!

Re: Cannot upload attachments v2.10 or 2.11

Posted: 29 Mar 2018, 17:11
by ngoyal
@radub, can you please specify the steps to enable the PHP fileinfo extension? Thanks!

Re: Cannot upload attachments v2.10 or 2.11

Posted: 09 May 2018, 15:13
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]

Re: Cannot upload attachments v2.10 or 2.11

Posted: 16 Aug 2018, 06:29
by jishan
Thanks LucVd
Adding extension=php_fileinfo.dll in php.ini file worked for me in IIS server :)