title: file_put_contents(): read of 8192 bytes failed with errno=21 Is a directory
body: <p>I am trying to import an excel sheet of about 100,000 rows into my database. I am using maatwebsite/excel library in Laravel.</p>
  <p>whenever I try to upload the excel sheet, I get the error</p>
  <pre><code>file_put_contents(): read of 8192 bytes failed with errno=21 Is a directory
  </code></pre>
  <p>here is what my controller method looks like</p>
  <pre><code>public function importData(Request $request)
  {
      try {
          Excel::import(new UsersImport, $request-&gt;file('file'));
          return redirect()-&gt;back()-&gt;with('success', 'Record Imported Successfully');
      }catch (\Exception $e){
          return redirect()-&gt;back()-&gt;with('error', $e-&gt;getMessage());
      }
  
  }
  </code></pre>
  <p>can someone please help out. thanks.</p>