There is a code
using (var fileStream = new FileStream(path, FileMode.Create)) { using (var archive = new ZipArchive(fileStream, ZipArchiveMode.Update)) { foreach (var file in AttachmentFile) { archive.CreateEntryFromFile(file.FileName,file.FileName); } } fileStream.Close(); } At the output I get an empty archive. What am I doing wrong?
It is noteworthy that the archive has a size, but there are no files in it.
AttachmentFilenot exactly empty? - kmv