J
J
Jedi2018-05-01 07:05:16
Laravel
Jedi, 2018-05-01 07:05:16

How to properly upload a file?

How to properly implement file upload in real-time mode in Laravel?
On the post creation page, I use a library such as FilePond.js. It real-time sends the file to the server.
Saving a file before publishing a post (not creating it) is stupid.
It is necessary to temporarily store the file somewhere ...
Give advice on how to correctly implement this?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hakkol, 2018-05-01
@hakkol

Saving a file before publishing a post (not creating it) is stupid.

And why is this stupid? Those. is it better to figure out how to store a temporary file? It is better to save the file without linking to the post, and when saving the post, make a link to the file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question