Windows: Server responded with 500 code on file upload

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Corobori
Posts: 4
Joined: 19 Feb 2018, 16:48

Windows: Server responded with 500 code on file upload

Post by Corobori »

Hi,

I am trying to enable file uploading with Mantis, I tried both disk and database option but both of them are coming back with the same error "Server responded with 500 code." I setup read/write/delete permissions on the directory to upload files.

Anybody around who managed to get this working on a Windows Server ?
Jean-Luc

Mantis: 2.25.4
PHP: 7.4.33
SQL: SQL Server 2016
DB Version: 13.00.5026
OS: Windows Server 2016
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Windows: Server responded with 500 code on file upload

Post by atrol »

Do you get any errors or warnings when running admin/check/index.php ?
Maybe you have to install the PHP fileinfo extension.
Please use Search before posting and read the Manual
Corobori
Posts: 4
Joined: 19 Feb 2018, 16:48

Re: Windows: Server responded with 500 code on file upload

Post by Corobori »

Good point, indeed I have got a warning about the PHP fileinfo extension.

Is this something I can fix myself by uploading something or shoud I write to my hosting's support ?

Didn't know admin/check/index.php, I wrote it down for future issue
Jean-Luc

Mantis: 2.25.4
PHP: 7.4.33
SQL: SQL Server 2016
DB Version: 13.00.5026
OS: Windows Server 2016
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Windows: Server responded with 500 code on file upload

Post by atrol »

Corobori wrote: 29 Oct 2018, 13:59 Good point, indeed I have got a warning about the PHP fileinfo extension.
Didn't know admin/check/index.php, I wrote it down for future issue
RTFM :wink: https://www.mantisbt.org/docs/master/en ... postcommon
Corobori wrote: 29 Oct 2018, 13:59 Is this something I can fix myself by uploading something or shoud I write to my hosting's support ?
Hard to say. Depends on the your rights on the server.
Windows users must include the bundled php_fileinfo.dll DLL file in php.ini to enable this extension.
http://php.net/manual/en/fileinfo.installation.php
Please use Search before posting and read the Manual
Post Reply