title: How to get and store images on different location - yii2
body: <p>I have 3 environments on my server as:</p>
  
  <pre><code>1. PROD
  2. PRE_PROD
  3. TEST
  </code></pre>
  
  <p>The project developed in yii2 and its live. I have lot of images on <code>frontend/web/images</code> folder. Everytime when I want to compare both environments <code>PROD</code> and <code>PRE_PROD</code>, I have to make a copy of all images in both folder.</p>
  
  <p>Is there any way to Upload and Show images from different URL like CDN. Means upload in a folder in <code>public_html/images</code> and use the same in all environment rather than from <code>frontend/web/images</code> of each.</p>
  
  <p>Example :
  I want this type of structure :</p>
  
  <pre><code>public_htmlimages
  
  public_html/prod/
  public_html/pre_prod/
  public_html/test/
  </code></pre>
  
  <p>I want to write a code to upload all images in <code>pulic_html/images/</code> and refer from all available environment, is it possible?</p>