N
N
naneri2015-06-26 14:12:26
Sessions
naneri, 2015-06-26 14:12:26

How to save image data in session?

I have a field that saves images made with dropzonejs .
Files are sent by Ajax to a server and then stored in temporary storage. How can I save data about a file into a session?
When I write:

Session::put('topicCover', $name);

server returns an error. It simply does not allow writing anything to the session.
The error is this in the console:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question