title: Will uploading my video through Vimeo package affect my server?
body: <p>I'm using <a href="https://github.com/vimeo/laravel" rel="nofollow noreferrer">https://github.com/vimeo/laravel</a> package to upload my video to Vimeo. But there's a little problem with the file size, so I edited the php and nginx configuration to allow up to 500 request size... which isn't good (Keep in mind this is my test server and not production). I'm wondering if the package itself streams the file and uploads it or it uses as much memory as the file size and upload it at once..</p>
  
  <p>Heres my code :</p>
  
  <pre><code>public function UploadToVimeo(Request $request){
      $this-&gt;validate($request, [
          'class_id' =&gt; 'required|exists:teacher_classes,class_id',
          'video_name' =&gt; 'required|mimes:mp4,mov,ogg,qt',
      ]);
      $file = $request-&gt;video_name;
      $result = Vimeo::upload($file);
      if($result){
          $str = str_replace('/videos/','',$result);
          TeacherClass::where('class_id',$request-&gt;class_id)-&gt;update(['url'=&gt;'https://vimeo.com'.$str]);
      }
      return back()-&gt;with('result',$str);
  }
  </code></pre>
  
  <p>Can someone explain to me how the package works? Or a way to stream the file?</p>
  
  <p>Thank you</p>