Download and save files in setup stage


is it possible to download some (lets say 200) files in the setupstage and save them to disk and then use those files in the vu code?

I want to download the files so I can VUs can use different files for uploading.

Thanks in advance :slight_smile:

Hi there,

you can’t store the files to disk since k6 doesn’t expose an API to do so, for several reasons (see issue #666 :smiling_imp:).

You could store them in memory in an object and access them in the default function, but that will be very inneficient since each VU would have a copy of the data. Take a look at this discussion for some tips on how to handle this.

Good luck!