Direct API Invalid Signature String to sign - 'timestamp=1541651684'."
I'm using React Native to directly call the API for uploading images using SINGED model.
If I remove all the options, e.g. folder, public_id... in the string in order to generate authentication signature, that works perfectly well.
BUT WHEN I ADD even one parameter into the string, is returns the Invalid Signature error.
Here is my code:
-
Hi,
In this example you sign this string: " 'folder=aabbcc×tamp=' + 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
Post is closed for comments.
Comments
3 comments