title: shopware 6 upload multiple product variation images
body: <p>Can we upload multiple image to the variation using API. Single image upload can be possible using below code, but not sure about multiple image upload.</p>
  <pre><code>$mediaId ='random string';
  $url = $images['url'];    
  $mediaData = array(
      array(
          'id' =&gt; $mediaId,
          'mediaFolderId' =&gt; $mediaFolderID,
      ),
  );
  $mediaDataArr = array(
      'payload' =&gt; array(
          &quot;action&quot; =&gt; &quot;upsert&quot;,
          &quot;entity&quot; =&gt; &quot;media&quot;,
          'payload' =&gt; $mediaData,
      ),
  );
  $createMedia = $shopware6HelperObj-&gt;post('_action/sync', $mediaDataArr);
  $urlArr = array(
      'url' =&gt; $url,
  );
  $parts = pathinfo($url);
  $params = array(
      'extension' =&gt; $parts['extension'],
      'fileName' =&gt; $parts['filename'] . '__' . md5(time()),
  );
  $uploadImage = $shopware6HelperObj-&gt;post('_action/media/' . $mediaId . '/upload', $urlArr, $params);
  </code></pre>
  <p>Please suggest if any idea.</p>