A
A
axblue2017-01-09 22:45:18
Laravel
axblue, 2017-01-09 22:45:18

How to attach an uploaded image to a post that hasn't been created yet?

Hello. When creating a post, there is an ajax image loading. Everything is sent. How can I attach this image to the post when creating the post itself? I uploaded the picture through a separate controller.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cha-cha, 2017-01-10
@leshikgo

The picture is loaded > we get its id as a response > we push the id into the post form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question