Skip to main content
Source Link
mry
  • 113
  • 3

Create File in sharepoint mapped directory

I am creating a farm solution, I want to create zip file from 2 or more files taken from sharepoint library.

I want to temporarily save these files in my mapped folder ("Layout/MyFolder"). and allow users to download the zipped file from here.

When I try to create file by acessing path using server.mapPath(".."). It fails with error path doesnt exist.

Please help. If I should try any other approach please advice