Here is the code i run for uploading
If allsighed=True Then
Dim sign1 As ABMSignaturePad = page.Cell(5,2).Component("sign1")
SignCounter =SignCounter + 1
Dim thefilename As String="a" & functions.csLeadzero(ws.Session.GetAttribute("CustomerPolicyId"),20) & "Signature1" & SignCounter & ".jpg"
Try
File.Delete( File.DirApp & DownloadFolder ,thefilename)
Catch
Log(LastException)
End Try
page.Pause
Try
sign1.GetDrawingURI(thefilename)
Catch
Log(LastException)
End Try
Else
page.Msgbox2("wronginput", "Please first accept Summary and Infosheet before uploading Signature!", "Error", "OK", "", False, ABM.MSGBOX_TYPE_ERROR, False, ABM.MSGBOX_POS_CENTER_CENTER, "")
End If