↳
In-reply-to
»
Ready for clone https://github.com/sorenpeter/pixelblog
⤋ Read More
@lyse@lyse.isobeef.org So to sanitize the files going thought upload.php
is something like preg_replace(“/[^a-z0-9\.]/”, “”, strtolower($str)); // from:http://www.touchoftechnology.com/simple-way-to-clean-up-filenames-in-php/
enough or should I use this https://gist.github.com/sumanthkumarc/2de2e2cc06c648a9f52c121501a181df or something completely different?
I relation to checking if the uploaded files is in fact images it is this code from https://www.w3schools.com/php/php_file_upload.asp good?