Merge pull request #2405 from umbraco/temp-U4-10852
Fixes U4-10852 Where the ZipArchive stream was closed
This commit is contained in:
@@ -283,8 +283,8 @@ namespace umbraco.cms.businesslogic.packager
|
||||
// find number of chars to remove from orginal file path
|
||||
|
||||
using (var memoryStream = new MemoryStream())
|
||||
{
|
||||
using (var archive = new ZipArchive(memoryStream, ZipArchiveMode.Create))
|
||||
{
|
||||
using (var archive = new ZipArchive(memoryStream, ZipArchiveMode.Create, true))
|
||||
{
|
||||
foreach (string file in ar)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user