Uploading images to my website from users


Hi , How i can let users upload images in my website " PHP framework like " profile images for example and at the same time make the website secure …I think make specific file extension will not help especially when the user are free to change the file extension with a simple rename it!!
hopefully any suggestion can help me here

Best Regards


That’s probably a better question for https://stackoverflow.com/search?q=upload+image or a general Google search, as it’s not a Cloudflare issue.