aboutsummaryrefslogtreecommitdiffstats
path: root/gsxlib.php
diff options
context:
space:
mode:
Diffstat (limited to 'gsxlib.php')
-rw-r--r--gsxlib.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/gsxlib.php b/gsxlib.php
index 43ba53a..fae862e 100644
--- a/gsxlib.php
+++ b/gsxlib.php
@@ -192,6 +192,16 @@ class GsxLib
public function createCarryInRepair($repairData)
{
+ if( $repairData['fileData'] && file_exists( $repairData['fileData'] ))
+ {
+ $fp = $repairData['fileData'];
+ $fh = fopen($fp, "r");
+ $contents = fread($fh, filesize($fp));
+ $repairData['fileData'] = $contents;
+ $repairData['fileName'] = basename($fp);
+ fclose($fh);
+ }
+
$resp = $this->client->CreateCarryInRepair(
array('CreateCarryInRequest' => array(
'userSession' => array('userSessionId' => $this->getSessionId()),