Fix upload script

Wasn't previously uploading all files in the array, using wrong syntax