Refactored SVWebController's get tempFilePath's function