I am trying to get the link from the image to show in a different part of the page. On first upload it doesn’t work and I get this error :
JSON.parse(document.getElementById(‘wpforms-59-field_39’).value)[0].url;
However, if I reupload again my code works like a charm. I am not sure if I should set a timeout. Any info would be great:
Here is the js that grabs that url:
var parsed = JSON.parse(document.getElementById(‘wpforms-59-field_39’).value)[0].url;
console.log(parsed);
]]>When upload any photo it is giving HTTP ERROR
]]>