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.