修改文件名别名
This commit is contained in:
@@ -389,6 +389,10 @@ public partial class supplierDownload : System.Web.UI.Page
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (var rule in replaceRules)
|
||||
{
|
||||
rnameList[i] = rnameList[i].Replace(rule.Key, rule.Value);
|
||||
}
|
||||
file.Add(files[i], rnameList[i]);
|
||||
addFiles.Add(files[i]);
|
||||
addCtid.Add(ctidLst[i]);
|
||||
@@ -432,7 +436,10 @@ public partial class supplierDownload : System.Web.UI.Page
|
||||
{
|
||||
string filePath = file;
|
||||
string dfile = Path.GetFileName(file);
|
||||
|
||||
foreach (var rule in replaceRules)
|
||||
{
|
||||
fname = fname.Replace(rule.Key, rule.Value);
|
||||
}
|
||||
FileStream fs = new FileStream(filePath, FileMode.Open);
|
||||
byte[] bytes = new byte[(int)fs.Length];
|
||||
fs.Read(bytes, 0, bytes.Length);
|
||||
|
||||
Reference in New Issue
Block a user