Esempio n. 1
0
 public static function updateMultipartUploadContext($UploadId, $iv, $lastPart = FALSE)
 {
     $encryptionDir = KS3_API_PATH . DIRECTORY_SEPARATOR . "cache" . DIRECTORY_SEPARATOR . "encryption" . DIRECTORY_SEPARATOR;
     $content = EncryptionUtil::getMultipartUploadContext($UploadId);
     $content["nextIv"] = base64_encode($iv);
     $content["lastPart"] = $lastPart;
     $json = json_encode($content);
     $file = EncryptionUtil::openfile($encryptionDir . $UploadId, "w");
     fwrite($file, $json);
     fclose($file);
 }