title: (What's [object Object] ERROR)Using Dropzone.js with laravel5.5
body: <p>I was following <a href="https://medium.com/@AhmadYousefDev/multiple-image-uploader-with-laravel-5-5-and-dropzone-js-6f39974ba1c6" rel="nofollow noreferrer">this site</a> to use dropzone to upload multiple images with laravel5.5. But it doesn`t work.</p>
  
  <p>When I upload .jpg file an error occurs. For example, </p>
  
  <pre><code>[object Object]
  </code></pre>
  
  <p>I want to know how to solve this. So, please give me some tips.</p>
  
  <p><strong>UploadController.php</strong></p>
  
  <pre><code>namespace App\Http\Controllers;
  use Illuminate\Http\Request;
  
  class UploadController extends Controller
  {
      public function upload(Request $request){
  
          $time = Carbon::now();
  
          $image = $request-&gt;file('file');
  
          $extension = $image-&gt;getClientOriginalExtension();
  
          $directory = date_format($time, 'Y') . '/' . date_format($time, 'm');
  
          $filename = str_random(5).date_format($time,'d').rand(1,9).date_format($time,'h').".".$extension;
  
          $upload_success = $image-&gt;storeAs($directory, $filename, 'public');
  
          if ($upload_success) {
              return response()-&gt;json($upload_success, 200);
          } else {
              return response()-&gt;json('error', 400);
          }
      }
  }
  </code></pre>
  
  <p><strong>filesystem.php</strong></p>
  
  <pre><code>'public' =&gt; [
      'driver' =&gt; 'local',
      'root' =&gt; public_path('uploads'),
      'url' =&gt; env('APP_URL').'/uploads',
      'visibility' =&gt; 'public',
  ],
  </code></pre>
  
  <p><strong>web.php</strong></p>
  
  <pre><code>Route::post('/upload' , 'UploadController@upload');
  Route::get('/test', function () {
  return view('uptest');});
  </code></pre>
  
  <p><strong>uptest.blade.php</strong></p>
  
  <pre><code>&lt;!doctype html&gt;&lt;html lang="{{ app()-&gt;getLocale() }}"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;script src="{{url('js/dropzone.js')}}"&gt;&lt;/script&gt;
          &lt;link rel="stylesheet" href="{{url('css/dropzone.css')}}"&gt;
          &lt;title&gt;Laravel&lt;/title&gt;
          &lt;script&gt;
              Dropzone.options.myDropzone = {
                  paramName: 'file',
                  maxFilesize: 20, // MB
                  maxFiles: 25,
                  acceptedFiles: ".jpeg,.jpg,.png,.gif",
  
              };
          &lt;/script&gt;   
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form action="{{ url('/upload') }}" enctype="multipart/form-data" class="dropzone" id="my-dropzone"&gt;
              {{ csrf_field() }}
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Those are which I make at localhost.</p>