Пример #1
0
 /**
  * Upload base64 encoded content of file (appened at the end of file)
  *
  * @param String $session_key
  * @param String $attachment_name (generated wuth createTemporaryAttachment)
  * @param String $content
  *
  * @return Integer the length written on disk
  */
 public function appendTemporaryAttachmentChunk($session_key, $attachment_name, $content)
 {
     try {
         $current_user = $this->soap_request_validator->continueSession($session_key);
         $temporary = new Tracker_SOAP_TemporaryFile($current_user, $attachment_name);
         return $temporary->appendChunk($content);
     } catch (Exception $e) {
         return new SoapFault((string) $e->getCode(), $e->getMessage());
     }
 }