I want the user to be able to upload a folder to my server, but I read that this can’t be done, but if you change it to a .zip file, then upload the .zip file like normal. I searched in some places and couldn’t find out how to do it in asp.net (VB). Can anyone lead me in the correct direction? I haven’t a clue about how to do this, otherwise I would have provided some code.
My Question: How would I go about unzipping a .zip file that is on the server in asp.net?
Thanks in advance.
There’s a step-by-step walkthrough in unzipping files using c# here. It’s a WinForms example, but doing it in code-behind in asp.net is no different than WinForms
Fair warning, though, that a .zip file can contain anything, and you need to prevent against malicious file execution.