File upload path in JotForm (and other form apps)

Right now files that are sent through JotForm, are not present in the JotForm node responce. So you can’t use these files in the workflow.

Meanwhile, it is possbile to get the download link for these files., through the HTTP request node, but this has some obstacles:

  1. you have to pass the API key as a query parameter, which means you have to store it as an $env variable or hardcoded. Both options are not quite good.
  2. The file ID, coming from the JotForm node, is given in form of its internal field number. You have to match it with its name,using a Function node or whatever.

So maybe it’s better to include the file links into the responce?

Are we talking about the JotForm trigger? if so, can you share what you received? is it including the file property but not the value?

Yes, about JotForm trigger. The file property is absent in the responce.
This is the responce (I replaced some data with ***):

[

{

"formID": "***",

"submissionID": "***",

"webhookURL": "https://***/webhook-test/***/webhook",

"ip": "***",

"formTitle": "Fancy Envelope Contact Form",

"pretty": "Name:textbox_sample0, E-mail:[email protected], Website:textbox_sample2, Message::Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mollis ultricies interdum. Nullam pharetra vitae lectus eget volutpat. Integer in sodales ligula. Vestibulum pellentesque arcu in est aliquam rhoncus. Curabitur et dui quis arcu scelerisque congue. Pellentesque libero ligula, sagittis a tempus quis, finibus eget erat. Nunc sed tempor nunc. Mauris tempor odio id lorem commodo dapibus. Nulla viverra mi in magna imperdiet volutpat., **Attach files:8.jpg**",

"username": "grinzello",

"rawRequest": {

"Name": "textbox_sample0",

"E-mail": "[email protected]",

"Website": "textbox_sample2",

"Message:": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mollis ultricies interdum. Nullam pharetra vitae lectus eget volutpat. Integer in sodales ligula. Vestibulum pellentesque arcu in est aliquam rhoncus. Curabitur et dui quis arcu scelerisque congue. Pellentesque libero ligula, sagittis a tempus quis, finibus eget erat. Nunc sed tempor nunc. Mauris tempor odio id lorem commodo dapibus. Nulla viverra mi in magna imperdiet volutpat."

},

"type": "WEB"

}

]

This is a part of additional HTTP-request I send after, having the submissionID:

"10": {

"name": "attachFiles",

"order": "7",

"text": "Attach files",

"type": "control_fileupload",

"answer": [

"https://www.jotform.com/uploads/grinzello/***/8.jpg"

],

"prettyFormat": "<a href="https://www.jotform.com/uploads/grinzello/***/8.jpg" target="_blank" title="8.jpg">8.jpg</a>"

}

I was able to get the path of the file to download using only the trigger? Is not this what you are looking for?

Oh, yes.This is it, but I didn’t see it in my trigger results.

it’s omitted when resolve data is set to true for some reason. In the meantime do not turn it on.

1 Like

Ok, I understood, thank you.