Is it safe to put all of them inside /public/images?
@chron No. Files uploaded by users should never be directly accessible. If a user uploads a malicious file that allows them to run code, and you just store it in the public directory, then they now have the ability to run code on your server. This is obviously a security vulnerability.
You should store uploaded images outside of any publicly-accessible directories and then process them on the server (i.e. create an appropriately-sized thumbnail). As if a user uploads a 4 MB image, but you only need to show it in an element that’s say, 400 pixels wide, then that’s just wasteful trying to download a large image that isn’t going to be shown anywhere near its full size.