Why does laravel remove files from redirect session? #36228
Unanswered
cmd-deploy
asked this question in
Q&A
Replies: 1 comment
-
looks like there were errors trying to serialize file inputs and the fix was to filter them out, that was a long time ago though (laravel 4.2 days :p ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am new to using laravel. I am trying to implement validation on a form with files. It has been a rather enlightening journey finding out how FormRequest work behind the scenes. Currently I am using a different session key to store instances of
Illuminate\Http\UploadedFile
instead of the built in flash storage. If possible I want to store all the validation info under the same key (_old_input) when the validator instance fails and I am redirected back. Upon trying to create the response object necessary to achieve this, I was surprised that files are cleaned out of the session. I want to understand the motivation behind why it is implemented as such.Beta Was this translation helpful? Give feedback.
All reactions