Answer the question
In order to leave comments, you need to log in
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. 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 questionAsk a Question
731 491 924 answers to any question