RAZ-2929: Uploading assets using API in different threads
Put 'thefile' var in local scope instead of variables scope to avoid race condition for the var and 'thefile.severfile' var being overwritten by another upload