# Variable file name in loop 'Conditions' field no longer working after update

**URL:** <https://discourse.psychopy.org/t/variable-file-name-in-loop-conditions-field-no-longer-working-after-update/26485>\
**Category:** Builder\
**Tags:** online, pavlovia\
**Created:** [December 15, 2021, 5:00am UTC](https://discourse.psychopy.org/t/variable-file-name-in-loop-conditions-field-no-longer-working-after-update/26485 "2021-12-15T05:00:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [December 15, 2021, 12:04pm UTC](https://discourse.psychopy.org/t/variable-file-name-in-loop-conditions-field-no-longer-working-after-update/26485/2 "2021-12-15T12:04:45Z")

</div>

If you are looking to attach resources on the fly, then this post might help.

> [@Unable to retrieve image when image name is code generated](https://discourse.psychopy.org/t/unable-to-retrieve-image-when-image-name-is-code-generated/26362/4):
>
> Uploaded to the server is different from made available to the experiment during the run. The code to do this is: psychoJS.serverManager.prepareResources([{ 'name': fileName, 'path': folderName+'/'+fileName, 'download': true }]); You can create a list of these dictionaries (using append/push) and give them to prepareResources in a single step.

Alternatively, you can attach all resources via Experiment Settings / Online in Builder.

---

_[View the full topic](https://discourse.psychopy.org/t/variable-file-name-in-loop-conditions-field-no-longer-working-after-update/26485)._
