G
G
Greg Popov2016-05-06 15:53:00
Yii
Greg Popov, 2016-05-06 15:53:00

How to competently implement image loading in yii2?

Hello.
I was faced with the task of implementing the loading of images for products, the store is written in yii2.
How to implement it competently and conveniently, there is not the slightest idea.
The following came to mind: make a table for images, store the title, primary key, upload date and a link to the table with products there. Do the download itself in the upload folder, generate a name in the form of md5, from the name entered by the user and the download date.
Maybe there are ready-made and beautiful solutions? Do you have your own tips?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Bukharev, 2016-05-06
@Gregpopov

costa-rico/yii2-images Handy
extension for image management, database storage, slicing, etc.

K
Kirill Arutyunov, 2016-05-06
@arutyunov

https://github.com/kartik-v/yii2-widget-fileinput

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question