title: How to upload documents on Rackspace from Laravel 8.x
body: <p>I am using Laravel 8.x for my new project and need support for a legacy Live web application in Zend, which uses the Rackspace CDN to store the files. So, I need to upload the files in Rackspace CDN from the new application in Laravel 8.x I can upload the files on Amazon S3 successfully, but not able to upload them on Rackspace. I tried with league/flysystem-rackspace, but it's not supported in the current Laravel version.</p>
  <p><strong>Controller</strong></p>
  <pre><code>public function store(Request $request)
  {
      $uploadImage = $request-&gt;file('file');
      $filename = time().str_replace(' ', '_', 
              $uploadImage-&gt;getClientOriginalName());
      $path = $request-&gt;file('file')-&gt;storePubliclyAs(
          config('app.cdn_dir'),
          $filename,
          'rackspace'
      );
  }
  </code></pre>
  <p><strong>config/filesystem</strong></p>
  <pre><code>'disks' =&gt; [
      'local' =&gt; [
          'driver' =&gt; 'local',
          'root' =&gt; storage_path('app'),
      ],
      'rackspace' =&gt; [
        'driver'    =&gt; 'rackspace',
        'username'  =&gt; env('CDN_USERNAME'),
        'key'       =&gt; env('CDN_KEY'),
        'container' =&gt; env('CDN_CONTAINER'),
        'endpoint'  =&gt; env('CDN_ENDPOINT', 'https://identity.api.rackspacecloud.com/v2.0/'),
        'region'    =&gt; 'IAD',
        'url_type'  =&gt; 'publicURL',
        'url' =&gt; env('CDN_URL'), 
      ],
  ],
  </code></pre>
  <p><strong>Error</strong></p>
  <blockquote>
  <p>Error: Class 'Symfony\Component\EventDispatcher\Event' not found in
  file
  D:\laragon\www\crm\vendor\guzzle\guzzle\src\Guzzle\Common\Event.php on
  line 10</p>
  </blockquote>