title: Unable to create image in magento api if product SKU contains slash(/)
body: <p>I'm trying to create an image via magento image api by following the same code in this <a href="http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute_media." rel="nofollow">magento doc</a>.</p>
  
  <p>And its working fine except the SKU contains slash(/) character.</p>
  
  <p>SKU: <code>SPA-1XCHOC12/DS0</code></p>
  
  <p>Here is the Error shows in <code>httpd/error_log</code>:</p>
  
  <pre><code>[Fri Feb 21 07:35:33 2014] [error] [client 8.35.201.40] PHP Fatal error:  Uncaught SoapFault exception: [104] Cannot create image. in /var/www/html/product_api/image.php:22\nStack trace:\n#0 /var/www/html/product_api/image.php(22): SoapClient-&gt;__call('call', Array)\n#1 /var/www/html/product_api/image.php(22): SoapClient-&gt;call('67da4ad39466d6e...', 'product_media.c...', Array)\n#2 {main}\n  thrown in /var/www/html/product_api/image.php on line 22
  </code></pre>
  
  <p>To identify the exact issue, i have added this code </p>
  
  <p><code>$this-&gt;_fault('not_created', $e-&gt;getMessage());</code> in <code>app/code/core/Mage/Catalog/Model/Product/Attribute/Media/Api.php</code></p>
  
  <p>And this is the error:</p>
  
  <pre><code>[Fri Feb 21 07:41:56 2014] [error] [client 8.35.201.42] PHP Fatal error:  Uncaught SoapFault exception: [104] Folder 'SPA-1XCHOC12' isn't writeable in /var/www/html/product_api/image.php:22\nStack trace:\n#0 /var/www/html/product_api/image.php(22): SoapClient-&gt;__call('call', Array)\n#1 /var/www/html/product_api/image.php(22): SoapClient-&gt;call('7f82eac2c509869...', 'product_media.c...', Array)\n#2 {main}\n  thrown in /var/www/html/product_api/image.php on line 22
  </code></pre>
  
  <p>And <code>media/catalog/product</code> folder permission is <code>777</code>. Still showing the same error.</p>
  
  <p><strong>Here is my Code:</strong></p>
  
  <p>Post Values are <code>sku = 'SPA-1XCHOC12/DS0'</code> and <code>image_url='http://example.com/11233.jpg'</code></p>
  
  <pre><code>$sessionId = $proxy-&gt;login($api_user, $api_pwd);  
  
  $newImage = array(
       'file' =&gt; array(
          'name' =&gt; $_POST['sku'],
          'content' =&gt; base64_encode(file_get_contents($_POST['img_url'])),
          'mime'    =&gt; 'image/jpeg'
       ),
       'position' =&gt; 0,
       'types'    =&gt; array('small_image', 'image', 'thumbnail'),
       'exclude'  =&gt; 0
  );
  
  $imageFilename = $proxy-&gt;call($sessionId, 'product_media.create', array($_POST['sku'], $newImage));
  </code></pre>