Unable to upload document error on zoho sign

Unable to upload document error on zoho sign

i am creating a document using laravel php and here is my code and i get this reponse

  1. {"code":2005,"message":"Unable to upload the document","status":"failure"}
  1. $path = storage_path($file);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'https://sign.zoho.com/api/v1/requests');
    $authorization = "Authorization: Zoho-oauthtoken ".$this->access_token;
    $contentType = "Content-Type: multipart/form-data; boundary=<calculated when request is sent>";
    curl_setopt($ch, CURLOPT_HTTPHEADER, [$authorization,$contentType]);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'data' => json_encode([
    'requests' => [
    'request_name' => "NDA ",
    'actions' => $this->actions,
    'is_sequential' => false,
    ]
    ]),
    'file' => curl_file_create($path)
    ]);
    $output = curl_exec($ch);


      • Sticky Posts

      • Free webinar: The critical role of electronic signatures in HR

        Hello everyone, Businesses and organizations have started implementing electronic signatures across departments, and human resources is no exception. Employee and employer signatures are crucial in HR processes, as they serve as an acknowledgment of critical
      • Zoho Sign: Product updates - Mid - 2024

        Hello, everyone! We've crossed the halfway point in 2024, and here's what Zoho Sign has been up to lately. We've been part of several Zoho User Groups, and we've started creating video content for our developers. Along with this, we have once again been