What is the best way to manage an image saved in SQL for a website?

I need to manage many photos of cooking recipes, profile images, etc.

I am currently working on a website using a local XAMPP server: the image is a repository in a folder in the project directory, and the link to the link is inserted from SQL into the database. When necessary, I request the URL of the photo.

If in the future I decide to buy a web hosting, where can I save the user image that they upload?

+4
source share
1 answer

What should I get when I buy a "server"

, " " ( " Wordpress" ), , .

:

  • /www/ FTP ( SSH),
  • - phpMyAdmin, URL-,
  • mySql, phpMyAdmin .

?

, , ?

, : Facebook, Reddit .

, " ", , :

  • , , . ( 5'000 x 3'500px A0, , )
  • .

2'000px 4K (~ 2,2Kpx). - 500px , 1Kpx 2Kpx . , .

, , PNG JPG. - , - "". , , JPG.

500Ko , , 2 000 1- ...


/

" ". , . (. / ).

, ? , :

  • - , , . , , .
  • , . (DSLR 10Mo: 10'000'000 ), . , .
+3

Source: https://habr.com/ru/post/1676557/


All Articles