I have a freshly created LEMP droplet from Oneclick images.
A basic PHP upload script (not word press just a normal script like you can find here https://www.w3schools.com/php/php_file_upload.asp) will not upload a file.
Same script works on another server. PHP is working, able to post to test scripts. However uploading even a tiny 2k file doesn’t work.
Thank you for insight.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
Have you verified that the file upload is enabled in the
php.ini
file? If you have enabled the PHP error logging you can check the logs for any valuable information as well.You can use the
phpinfo
function to verify which is the exactphp.ini
file that is in use and then check thefile_uploads
value in thephp.ini
file.Regards