0

Using Laravel 8, I thought when I used to return a form on a validation error, I could load all the old inputs back into the view using the {{old('fieldname')}} helper.

However, that has stopped returning the inputs for my file upload input boxes, everything else returns to the form as normal, except the image inputs.

$validatedData = $request->validate([
    'front_image' => 'mimes:jpeg,png,jpg,gif|max:3000',      
    'back_image'  => 'mimes:jpeg,png,jpg,gif|max:3000|required', 
    'indentured' => 'required|in:yes,no',
    'trade_selection' => ''
]);

When I use {{ old('front_image) }} nothing is reported. Weird thing is I can receive the errors for the input, and if I allow the form to push through I can see the files with dd($request) under files.

miken32
  • 42,008
  • 16
  • 111
  • 154
Canada_Goose
  • 21
  • 1
  • 9

0 Answers0