title: How to customize s3 uploaded files url in yii2?
body: <p>I have used <code>vlaim\fileupload\FileUpload;</code> and <code>yii\web\UploadedFile;</code></p>
  
  <pre><code>$image = UploadedFile::getInstance($model, 'flag');
              $model-&gt;flag = new FileUpload(FileUpload::S_S3, [
                  'version' =&gt; 'latest',
                  'region' =&gt; 'us-west-2',
                  'credentials' =&gt; [
                      'key' =&gt; 'KEY',
                      'secret' =&gt; 'SECRET'
                  ],
                  'bucket' =&gt; 'mybucket/uploads/flags/'.$model-&gt;code
              ]);
              $uploader = $model-&gt;flag;
              $model-&gt;flag = $uploader-&gt;uploadFromFile($image)-&gt;path;
  </code></pre>
  
  <p>In db i'm saving the path. How to customize the url?</p>
  
  <p>Now my url looks like <code>https://s3-us-west-2.amazonaws.com/mybucket%2Fuploads%2Fflags%2Fus/uploads%5C9f%5C7e%5Cc093ad5a.png</code></p>
  
  <p>I need the url like <code>https://mybucket.s3.amazonaws.com/uploads/flags/us.png</code></p>