File upload not working

I picked up some simple PHP code from Internet. There is a html page where you select a file and then submit it to a simple php script that should save it in a folder. (The folder is /files, it is inside html, with all rights granted). Unfortunately the $FILES superglobal is empty. I did try to troubleshoot the PHP, but found nothing (I have upload On, everything looks fine in the php.ini).
Is there something I should specify in openlitespeed configuration in order to enable the file upload? It is very frustrating to have such a simple thing not working :/
BTW, it is Ubuntu 18.04 and the openlitespeed is from the distro repository.
Last edited:


Active Member
I tested with the example page upload page, it is good.
You may update your php file. Also you can check with our upload.php code.