Server to save images

Asked

Viewed 81 times

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.

  • 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.

  • I recommend reading this question. Using another specific server for content distribution like images, Avascripts has several advantages.

1 answer

1


and safe to save image in the site directory itself?

The issue of security will involve many other things, such as how your entire application was developed, the configuration of services on the host, and more directly to the question, on how the upload validation was made.

there is some server for this?

Yes, one can easily search for image hosting services API that will see even some free ones for this.

Another solution is to think about distributing your content to other hosts thinking about performance issues, for example. I could lengthen to talk about this idea but in these two links below there are good answers about it:

  • perfect! thanks so much for the help

Browser other questions tagged

You are not signed in. Login or sign up in order to post.