I am developing using razor, .net mvc 3 and c#. I downloaded and am setting up the SlickUpload utility for uploading files to my server. I need a way to determine which folder the current file upload should go to. There are four possibilities in my scenario. Is there a programmatic way to do this. So far the documentation tells me to update my web.config file and add the following entry: , but this does not help me to vary the folder during runtime. Also, is there a way to get the original filename for each file?