Note that there are some explanatory texts on larger screens.

plurals
  1. POLaravel 4 returns blank page when using return withInput (file attached)
    text
    copied!<p>I have HTML form with contains text and file fields: </p> <pre><code> &lt;form method="post" action="{{url('control')}}" enctype="multipart/form-data"&gt; ... &lt;input type="text" class="form-control" name="business_name" id="business_name" ... &lt;label for="business_name"&gt;Brand Logo&lt;/label&gt; {{Form::file('logo')}} {{{ $errors-&gt;first('logo') }}} &lt;/form&gt; </code></pre> <p>I validate the input:</p> <pre><code>... 'logo' =&gt; 'image', </code></pre> <p>I return to the form <code>withInput</code> and <code>withErrors</code> if the <code>Validator</code> produces false:</p> <pre><code> return Redirect::to('control')-&gt;withInput($inputs)-&gt;withErrors($validator-&gt;getMessageBag()); </code></pre> <p>This works fine if no files are selected during the filling in process, I'm returned to the form <code>withInput</code> and <code>withErrors</code> </p> <p><strong>But</strong></p> <p>if I selected a file during the filling process and I submit with invalid input I'm returned <code>/control</code> which is completely <strong>empty</strong> this time. </p> <p><strong>Edit</strong></p> <p>After A comment recommendation I checked Laravel log:</p> <pre><code>[2013-12-23 17:05:17] production.ERROR: exception 'Exception' with message 'Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed' in C:\wamp\www\*****\***\vendor\laravel\framework\src\Illuminate\Session\Store.php:212 </code></pre> <p>I can't seem to find away to solve it so far any recommendation is welcomed.</p> <p>Thank you </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload