A
A
Andr Lw12014-08-05 18:50:51
JavaScript
Andr Lw1, 2014-08-05 18:50:51

How to save multiple photos (multi upload) to database in Laravel 4?

Greetings!

I am learning Laravel 4 creating applications.
At the moment my first application is a classifieds site.

The ad must have a photo gallery.

Question:
1. How to organize multi-upload of photo files?
2. How to store paths to images in the database?
Create a separate table (ex. gallery) or can be stored in the table of the ad itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korovin, 2014-08-06
@vakorovin

1. For yii, I recently used hayageek.com/docs/jquery-upload-file.php in a project, I did not find a better solution.
2. Better, of course, in a separate table, indicating the id of the ad and the file name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question