fix upload file paths