JATOS Export Study fails: no file picker appears
I'm trying to export a study which has a large directory of audio resources (~150MB). When I try to export, the window with "Working... might take a while [etc]..." appears, and then after a few seconds I get the following error in the js console:
fileSystemAccess.js:96 Download failed (SecurityError: Failed to execute 'showSaveFilePicker' on 'Window': Must be handling a user gesture to show a file picker.)
I don't think it's browser related because if I export a smaller study, the file picker appears and I can download the jzip archive no problem.
I'm assuming that it is the length of time to create the jzip archive which causes the showSaveFilePicker to fail. Does that sound likely? And if so, is there any way I can work around it?
The audio resources are 21 stimulus sets x 11 variants x 5 audio files; mean audio file is ~140kB. Each participant hears only one variant for each stimulus set. I have organised it using the batch session data to allocate participants between 11 cohorts in the same study, which means that all 1155 files need to be accessible.
I've tried to host the audio files on a separate server but I'm not having much success with that so far.
Any advice would be really welcome.
thanks
Stephen
Comments
Hi Stephen!
Which JATOS version do you use? There were problems like yours in older version that we (thought to have) solved. And actually there are differences in the browsers in regarding file download handling, especially between Firefox and Webkit-Browsers (Chrome, Safarie, Edge) - it's always worth to try a different one.
Best,
Kristian
Hi Kristian
Thank you for the quick response. I'm using 3.8.5 and it was Chrome that was timing out the download.
I'm sorry I didn't think of trying other browsers before posting. Firefox managed the download fine and I could upload the .jzip archive to the university server. That now isn't playing ball, but I will explore things with our server manager.
Thanks again!
Stephen