Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

e-signature

New Here ,
Nov 09, 2016 Nov 09, 2016

I want to implement the adobe e-signature functionality, it works fine when I am uploading a file from input type file but I need to do this with the relative path of the file. I have search a lot in google but doesn't find any relevant answers. I am using PHP

Please suggest your answers in PHP CURL of AJAX

$("#form").submit(function(e){

  e.preventDefault();

  var path = "<?=$_SERVER['DOCUMENT_ROOT']?>"+"ptaxtool/digitalFile/adobe.pdf";

  var form = new FormData($(this)[0]);

  form.append("File",path);

  var settings = {

  "async": true,

   "crossDomain": true,

   "url": "https://api.na1.echosign.com/api/rest/v5/transientDocuments",

   "method": "POST",

   "headers": {

     "access-token": "<?=$access_token?>"

   },

   "processData": false,

   "contentType": false,

    "mimeType": "multipart/form-data",

    "data": form

  }

  $.ajax(settings).done(function (response) {

   console.log(response);

  });

  })

258
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation