Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me to do the following things. Is there any way to save the file in Network server other than FTP?

1) I want to Save Files to Network Server From File Upload Control.

2) Before Saving i want to check if the Folder Exists or not, if not exist then i want to create the Folder through code.

3) I want to Check whether the Selected File Exists or not in the specified folder.

4) If the Selected File already Exists, then delete the existing file and save the selected file.

5) Compress and UnCompress while Saving and Retrieving.
Posted
Comments
Mr Ellipse 15-Aug-15 3:29am    
There are quite a few things to be done here.

If you create a virtual directory in IIS, and point it to the UNC/network share, you can then use Server.MapPath() to access files. The account IIS is running under will need appropriate permissions on the UNC share.

Apart from that small piece of setup, all the class libraries you should need reside in System.IO namespace!

You can use FileInfo and DirectoryInfo classes to CRUD directories or files. System.IO.Compression.GZipStream can be used to compress or decompress files.

Hope this points you in the right direction!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900