fixed issue with space in file path on download or upload