Fix Query file names in upload