我正在使用你好标志。
你能弄清楚问题出在哪里吗?我搜索了很多,但没有找到相同的。
[HttpPost]
public ActionResult SendDocument(SendDocumentForm Form)
{
if (!ModelState.IsValid)
{
SendDocumentFormViewModel model = new SendDocumentFormViewModel();
model.Form = Form;
return View(model);
}
var client = new Client(HelloSignAPIKey);
var request = new SignatureRequest();
request.Subject = Form.Subject;
request.Message = Form.Message;
request.AddSigner(Form.SignerEmail, Form.SignerName);
byte[] arreglo = new byte[Form.File.ContentLength];
Form.File.InputStream.Read(arreglo, 0, Form.File.ContentLength);
request.AddFile(arreglo, Form.File.FileName);
request.TestMode = true;
var response = client.CreateEmbeddedSignatureRequest(request, HelloSignClientID);
var urlSign = client.GetSignUrl(response.Signatures[0].SignatureId);
return RedirectToAction("Sign", new { url = urlSign.SignUrl });
}