# Loading stimulus files when using remote client

**URL:** <https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514>\
**Category:** Support\
**Created:** [June 18, 2015, 8:14pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514 "2015-06-18T20:14:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [June 18, 2015, 8:14pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514/1 "2015-06-18T20:14:28Z")

</div>

Hi Chris,

If I’m running an experiment remotely, where does MWorks look for stimulus files - the server computer, or the client computer? It seems like to get this to work I have to have the files on both computers in identical directories.

Thanks,  
Evan

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [June 18, 2015, 8:21pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514/2 "2015-06-18T20:21:31Z")

</div>

Hi Evan,

As part of loading the experiment, MWorks copies any needed files (images, sounds, etc.) from the client machine to a temporary directory on the server machine. MWServer then uses the server-side copies.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [June 18, 2015, 8:38pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514/3 "2015-06-18T20:38:58Z")

</div>

That makes sense, but do you know why I could be getting an error when I  
remove the files from the server directory prior to loading? I can’t get it  
to work unless the files are already there.

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [June 19, 2015, 2:42pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514/4 "2015-06-19T14:42:26Z")

</div>

No, I don’t know why that would be happening. Can you send me some of the error messages you’re getting?

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [June 26, 2015, 8:15pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514/5 "2015-06-26T20:15:15Z")

</div>

Hi Evan,

As we discussed offline, it looks like the issue here is that you’re giving MWorks absolute paths to your files, and it isn’t handling them correctly. I’ll figure out why this is happening and see how we can fix it.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 10:39pm UTC](https://mworks.discourse.group/t/loading-stimulus-files-when-using-remote-client/514/6 "2022-07-19T22:39:42Z")

</div>


