That was an old error removed with a update of the framework. Try composer update but expect many other bug with your actual code
Oct 9, 2014
7
Level 2
Laravel 5 File Upload with form request Issue
I am receiving this error each time I submit a file:
Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed
I have the following request
<?php namespace MyApp\Http\Requests\Tracks;
use Illuminate\Foundation\Http\FormRequest;
class StoreTrackRequest extends FormRequest {
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name'=>'required|min:3',
'artist_id'=>'required',
'audio'=>'required|mimes:mp3',
];
}
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
}
NB: when I remove the request everything works fine
Please or to participate in this conversation.