Video uploading not working in laravel 5
<p>I am working on uploading the videos for my website. But i unable to do it. I have search many documents but i am fail to solve it. Can any one help me out to solve this problem?</p>

<p>I am getting an error "Call to a member function getClientOriginalName() on null"</p>

<p>//Form code for video upload..</p>

<p>{!! Form::open(array('url' => 'video' , 'files' => true)) !!}</p>

<pre><code>    &lt;div class="form-group"&gt;
    {!! Form::label('video_name', 'Video Name : ') !!}
    {!! Form::text('name',null, ['class' =&gt; 'form-control']) !!}
    &lt;/div&gt;

    &lt;div class="form-group"&gt;
        {!! Form::label('video_path', 'Select Video : ') !!}
        {!! Form::file('path', ['class' =&gt; 'form-control'])!!}
    &lt;/div&gt;

    &lt;div class="form-group"&gt;
        {!! Form::submit('Upload Video')  !!}
    &lt;/div&gt;

    {!! Form::close() !!}
</code></pre>

<p>//Controller Code </p>

<p>public function store(Request $request){</p>

<pre><code>    $data = $request-&gt;all();
    if ( $request-&gt;hasFile( 'path' ) ) {
        $file = $request-&gt;file( 'path' );
        $name = $file-&gt;getClientOriginalName();
        $data[ 'path' ] = $name;
        $destination = '/public/videos';
        $request-&gt;file( 'path' )-&gt;move( base_path() . $destination, $name );
        return $name;
    }
    else {
        return '&lt;script&gt;alert("Fail")&lt;/script&gt;';
    }
}
</code></pre>

<p>//The above code is working for images, doucments and audio but not working for videos.</p>

<p>Thanks in advance</p>