How to Securely Allow Users to Upload Files (PHP)(paragonie.com)
paragonie.com
How to Securely Allow Users to Upload Files (PHP)
https://paragonie.com/blog/2015/10/how-securely-allow-users-upload-files
1 comments
Another approach: http://nullcandy.com/php-image-upload-security-how-not-to-do...
The advice in the NullCandy article is entirely Apache dependent, while the advice in the Paragon article works regardless of your chosen webserver.