我正在使用DotNetZip並注意到我在Mac上獲得許可問題。這似乎只發生在我使用內容處置。DotNetZip:使用C#權限問題創建zip
也就是說,如果我只是將它保存到磁盤
using (ZipFile zip = new ZipFile(@"C:\zip\temp.zip"))
{
// this works fine
}
,但如果我使用的內容部署像這樣,在Mac用戶權限被拒絕(Everyone組選中)
Response.ContentType = "application/zip";
Response.AddHeader("content-disposition", "filename=" + filename);
using (ZipFile zip = new ZipFile(Response.OutputStream))
{
//
}
謝謝,我應該澄清,我的Windows Web服務器上生成的壓縮。 Mac用戶下載它們時會發生此問題。 – frosty 2009-03-03 16:19:54