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

Problem in save document function of Mifiel #4

@atifaziz2

Description

@atifaziz2

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: 'signer1@email.com', tax_id: 'AAA010101AAA' },
{ name: 'Signer 2', email: 'signer2@email.com', tax_id: 'AAA010102AAA' }
]
})
document.save().then(doc => {
console.log(doc)
doc.original_hash
doc.file
doc.file_signed
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions