You are viewing limited content. For full access, please sign in.

Question

Question

How is the Attachment ID generated during File Upload on forms?

asked on February 25 Show version history

Hello, we have a number of forms that require a signature. Later on, that signature will need to be used or shown on a form (both Laserfiche and a PDF form later on.) 

To make this possible to use later on, I had the form convert the signature from the signature field to a png and upload it to the File Upload field automatically. However, it does not work. It looks like that is because when a file is uploaded manually/the usual way, it there's an ajax request triggered. It looks like this request either partially uploads the file or creates a place for it to go later on. Either way, it returns a Unique ID that the process needs to fully upload the file.

 

I think to move forward, I need to trigger the ajax call for my automatically uploaded png and add the returned Unique ID as an attribute.

Does anyone have any experience with this?

 

Using Forms 10.4 and we are self hosted. I could probably upload it to the server and retrieve it later with a php script, but I'd like to keep it simple. Later on in the workflow, I tried to convert the base64 info to a png and then insert it on the PDF form via C# script, but I don't know C# well enough to make it work or troubleshoot further. 

0 0

Replies

replied on February 25

When user uploads a file, the file would be sent to backend through API call. Backend would store the file in database or volume, record it with an ID and return the ID to frontend. When user submits the form, the ID would be sent to backend to find corresponding file.

There are some solutions using signature field value on workflow without converting it to png first: https://answers.laserfiche.com/questions/224540/Print-or-Insert-Form-Signature-Into-PDF-using-Workflow

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.