Note that there are some explanatory texts on larger screens.

plurals
  1. POImage Upload with Zend_Service_Nirvanix
    text
    copied!<p>I can't seem to upload an image using Zend_Service_Nirvanix. Is it even possible? I have a feeling that my problem has something to do with not being able to figure out how to set the UploadHost on the Transfer Service.</p> <p>Any help is greatly appreciated! My deadline is July 16th!</p> <p><strong>Here is my code:</strong></p> <pre><code>$nirvanix = new Zend_Service_Nirvanix(array('appKey' =&gt; $key, 'username' =&gt; $user, 'password' =&gt; pass)); $NSImfs = $nirvanix-&gt;getService('IMFS'); $options = array('sizeBytes' =&gt; filesize($source)); $storageNode = $NSImfs-&gt;getStorageNode($options); $NSTransfer = $nirvanix-&gt;getService('Transfer'); $options = array('uploadToken' =&gt; $storageNode-&gt;getStorageNode-&gt;UploadToken, 'path' =&gt; $original, 'fileData' =&gt; file_get_contents($source)); $result = $NSTransfer-&gt;uploadFile($options); </code></pre> <p><strong>Here is the error I keep getting:</strong></p> <blockquote> <p>Zend_Service_Nirvanix_Exception: XML could not be parsed from response: Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.</p> <p>Requested URL: /ws/Transfer/UploadFile.ashx</p> <p>in /Applications/MAMP/bin/php5/lib/php/Zend/Service/Nirvanix/Response.php on line 119</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload