Direct API Invalid Signature String to sign - 'timestamp=1541651684'."

Comments

3 comments

  • Avatar
    Yakir Perlin

    Hi,

    In this example you sign this string: " 'folder=aabbcc&timestamp=' + timestamp + api_secret", but you did not used the "folder" parameter in you upload call:

    formdata.append('file', {uri:uri, type:'image/jpg', name:'aaa.jpg'});

    You used only the "file" parameter and not the also "folder". This is why you received this message: "String to sign - 'timestamp=1541651684' because we expected to sign only the timestamp.

    Hope this helps, could you please try again and let me know if it works for you?

    Best,

    Yakir

     

    0
    Comment actions Permalink
  • Avatar
    Ce Zhang

    Hi Yakir,

    I add a standalone 

    formdata.append('folder', 'aabbcc');
     
    It worked! 
     
    Thanks you so much for your help!
    0
    Comment actions Permalink
  • Avatar
    Yakir Perlin

    Great! 

    Glad I could help.

    Best,

    Yakir

    0
    Comment actions Permalink

Please sign in to leave a comment.