Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Problem in save document function of Mifiel #4

Open
atifaziz2 opened this issue Mar 12, 2019 · 0 comments
Open

Problem in save document function of Mifiel #4

atifaziz2 opened this issue Mar 12, 2019 · 0 comments

Comments

@atifaziz2
Copy link

I am using mifiel document.save function and if I put hosted or server pdf path to file:'path to my-file.pdf' it throws the error. If I put the local path while testing, it works fine. I am implementing in firebase sdk for cloud functions in node.js. Below the function from documentation for reference.

const document = new Mifiel.Models.Document({
file: 'path/to/my-file.pdf',
signatories: [
{ name: 'Signer 1', email: '[email protected]', tax_id: 'AAA010101AAA' },
{ name: 'Signer 2', email: '[email protected]', tax_id: 'AAA010102AAA' }
]
})
document.save().then(doc => {
console.log(doc)
doc.original_hash
doc.file
doc.file_signed
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant