# Downloading resources canceled by now possible click on "ok" during download

**URL:** <https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285>\
**Category:** Online experiments\
**Tags:** online, pavlovia, textbox\
**Created:** [October 10, 2022, 8:22am UTC](https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285 "2022-10-10T08:22:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ann](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ann/32/34214_2.png) [@ann](https://discourse.psychopy.org/u/ann)\
**Post date:** [October 10, 2022, 8:22am UTC](https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285/1 "2022-10-10T08:22:52Z")

</div>

Since using the new version (2022.2.4), the dialog box displays a small “Ok” button before all resources are downloaded. After downloading all resources, the “ok”-button is displayed larger.

**What is the problem I am having?**  
By clicking the “Ok” Button before all resources are downloaded, the download is aborted and an error message appears (TypeError: image undefined), which is logical as not all resources have been downloaded. Clicking the “Ok”-Button is even possible before filling out all mandatory information.

**What is the solution I would like for my study?**  
The “Ok” button is not visible until all resources are downloaded. Is there are a way to change this with a code component?

 ![Bild1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/d/8d0c8ee70af746fec0ebd3f9c697c7777855da4c.png)  
 ![Bild2](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/c/a/ca7daf36e89603c0ba18592078336ad9d7718134.png)

Is anyone else having problems with this change or is it just me? I would appreciate help because my study contains more than 400 images to download which takes approx. 1 minute. I could lose many potential subjects because they might click too early on “Ok”.

---

<div class="post-metadata">

**Author:** ![ajus](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ajus](https://discourse.psychopy.org/u/ajus)\
**Post date:** [October 10, 2022, 9:35am UTC](https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285/2 "2022-10-10T09:35:22Z")

</div>

Is this happening in local debug mode or on pavlovia?

---

<div class="post-metadata">

**Author:** ![ann](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ann/32/34214_2.png) [@ann](https://discourse.psychopy.org/u/ann)\
**Post date:** [October 10, 2022, 9:44am UTC](https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285/3 "2022-10-10T09:44:55Z")

</div>

Hi @ajus, this is happening on pavloia - I only test directly on pavlovia.

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [October 11, 2022, 10:52am UTC](https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285/4 "2022-10-11T10:52:38Z")

</div>

Hello ann,

you could try to download the majority of the images at a later moment in the experiment using the [Resource Manager](https://psychopy.org/builder/components/resource_manager.html).

Best wishes Jens

---

<div class="post-metadata">

**Author:** ![ann](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ann/32/34214_2.png) [@ann](https://discourse.psychopy.org/u/ann)\
**Post date:** [October 11, 2022, 12:47pm UTC](https://discourse.psychopy.org/t/downloading-resources-canceled-by-now-possible-click-on-ok-during-download/31285/5 "2022-10-11T12:47:33Z")

</div>

Hello Jens,  
thank you for your quick reply! I will try that one.  
Best wishes Ann
