1
I would like to know about saving image after upload.
It is safe to save image in the site directory itself or there is some server for it?
For example, I have a news site and after you register the news, the selected images are converted and sent to the site directory itself, if the site starts to receive many news, the directory will fill one hour!
So is there a service where I send the files and in the directory of the site I keep only simpler files? I didn’t find much on the Internet on this subject, can you give me a help?
It is only dangerous if you do not treat the type of the file that was sent, thus allowing someone to send a php script and manage to run it externally.... As for performance, I don’t think the amount of files in a directory influences.
– mau humor
You have some API options to handle and store and view images like Cloudinary which already has a how-to orientation in PHP http://cloudinary.com/documentation/php_integration This service is free to some extent.
– Fernando Vargas Filho
I recommend reading this question. Using another specific server for content distribution like images, Avascripts has several advantages.
– marcusagm