twg_'s avatar
Level 6

Dropzone and L5

I have a form, http://jsfiddle.net/maddtechwf/86btencd/1/ , that I have in Laravel 5. I'm running into a hickup when it comes to the image upload. I was told that for every image that dropzone is uploading, it will call the form post to upload the image. I'm still learning Laravel so I'm trying to figure out the best way to do this. I would really like to do it in a single for but if I have to break it up into multiple parts(forms) then I guess that is what I will have to do.

Here is what I would really like to accomplish with a single form.

  1. Save the title and description to table_one.
  2. Get the id of the row you just inserted.
  3. Upload images to a specific folder
  4. Update table_two with the image_url and table_one.id from step 2.
0 likes
0 replies

Please or to participate in this conversation.