as i said i changed upload.php form it now looks like this. note i have added a one more hidden field (the ones with ***)
<div class="container">
<h4>Upload File to: <?php echo htmlspecialchars($path); ?></h4>
<form ENCTYPE="multipart/form-data" action="myPost.php" method="post">
<input type="hidden" name="uploadToken" value="<?php print $accessToken; ?>"/>
<input type="hidden" name="destFolderPath" value="<?php print $path ?>"/>
<input type="hidden" name="forwardingUrl" value="http://<?php print $_SERVER['SERVER_NAME']; ?>/S4Tek/NirvanixSystemManager/browse.php?path=<?php print $path; ?>"/>
***<input type="hidden" name="ipAddress" value="<?php print $ipAddress; ?>"/>
<LABEL for="uploadFile1">File: </LABEL>
<input type="file" name="uploadFile"/><br>
<input type="submit" value="Upload" /><input type="button" value="Cancel" onClick="BLOCKED SCRIPThistory.back();" />
</form>
</div>
<?php
myPost.php is the custom action . connectdb.php is a class that deals with interacting with my sql data. it works i have tested it. all i need now is to correctly forward the form data from above trough the function below towards node1.nirvanix.com/upload.ashx (or maybe a different node)
<?php
require_once "connectdb.php";
require_once "NirvanixAPI/RestUtils.php";
$ipAddress = $_REQUEST['ipAddress'];
$forwardingUrl = $_REQUEST['forwardingUrl'];
$destFolderPath = $_REQUEST['destFolderPath'];
$uploadToken = $_REQUEST['uploadToken'];
$connectdb = new Connectdb(); //mysql object
//$connectdb->insertAsset($_FILES['uploadFile']['name'] , $destFolderPath, $_FILES['uploadFile']['size']);
$url = 'http://' . $ipAddress . '/Upload.ashx';
$data = array('uploadToken'=>$accessToken,
'destFolderPath'=>$destFolderPath,
'forwardingUrl'=>$forwardingUrl,
'uploadFile'=>@$_FILES['uploadFile']);
$response = curlPost($url, $data);
print $response;
?>
thank you very much for your prompt response