Page 1 of 1

Windows: Server responded with 500 code on file upload

Posted: 29 Oct 2018, 13:32
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 ?

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

Posted: 29 Oct 2018, 13:43
by atrol
Do you get any errors or warnings when running admin/check/index.php ?
Maybe you have to install the PHP fileinfo extension.

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

Posted: 29 Oct 2018, 13:59
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

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

Posted: 29 Oct 2018, 14:11
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