# Append string as URL to download image from doesn't work

**URL:** <https://forums.unrealengine.com/t/append-string-as-url-to-download-image-from-doesnt-work/1162336>\
**Category:** Programming & Scripting\
**Tags:** image, string, url, unreal-engine, question\
**Created:** [May 11, 2023, 9:51am UTC](https://forums.unrealengine.com/t/append-string-as-url-to-download-image-from-doesnt-work/1162336 "2023-05-11T09:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yidaann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yidaann](https://forums.unrealengine.com/u/yidaann)\
**Post date:** [May 11, 2023, 9:51am UTC](https://forums.unrealengine.com/t/append-string-as-url-to-download-image-from-doesnt-work/1162336/1 "2023-05-11T09:51:38Z")

</div>

Hi all! I have been trying to load an image during runtime using the “download image” node. However, when I append a string to include a parameter, which is connected to the ‘url’ portion, it doesnt load and would print ‘failed’. but if i were to write the parameters out manually within the append string node, it works.

my parameter is coming from a php script, which i have already made sure to trim.  
echo trim($url);

so I was wondering if there is anything else I can check for? or how would I print out why it failed using the blueprints? thanks in advance!

---

<div class="post-metadata">

**Author:** ![yidaann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yidaann](https://forums.unrealengine.com/u/yidaann)\
**Post date:** [May 12, 2023, 3:35am UTC](https://forums.unrealengine.com/t/append-string-as-url-to-download-image-from-doesnt-work/1162336/2 "2023-05-12T03:35:53Z")

</div>

I managed to solve it! I think it’s a formatting issue, but within my php script I had to set the content type to JSON. (previously it was set to plain text) and then within Unreal, Convert to JSON, and then Get String of the variable I wanted. Connect it to Append and it should work!

Hope this helps someone out there.

 ![InkedConverttoJSONGetString](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/d/69d2de622b589d70875825ea3092d902102aeb29.jpeg)
