title: Can't upload a video in laravel
body: <p>I am new in Laravel. I'm trying to make a movie site so I need to upload videos and then make their playback. The thing is when I try to upload a video <code>.mp4 format</code> it gives the following exception: </p>
  
  <blockquote>
    <p>failed to open stream: Permission denied.</p>
  </blockquote>
  
  <p>My method code in controller looks like this:</p>
  
  <pre><code>public function create(Request $request) 
  {
      $this-&gt;validate($request,[
          'poster_name' =&gt; 'required|image'
      ]);
  
      // Handle poster upload
      $imageName = $request-&gt;file('poster_name')-&gt;getClientOriginalName();
      $request-&gt;file('poster_name')-&gt;storeAs('public/images', $imageName);
  
      // Handle video upload.
      $videoName = $request-&gt;file('file_name')-&gt;getClientOriginalName();
      $request-&gt;file('file_name')-&gt;storeAs('public/videos', $videoName);
  
      $movie = new Movie;
  
      $movie-&gt;name = $request-&gt;name;
      $movie-&gt;description = $request-&gt;description;
      $movie-&gt;release_date = $request-&gt;release_date;
      $movie-&gt;country = $request-&gt;country;
      $movie-&gt;poster_name = $imageName;
      $movie-&gt;file_name = $videoName;
  
      $movie-&gt;save();
  
      return redirect()-&gt;action('MovieController@main');
  }
  </code></pre>
  
  <p>Please note that I am using windows 10. Any suggestions?</p>