From 132dad57e25930a49aeb890dc46c04d71fccbe4d Mon Sep 17 00:00:00 2001 From: Andre Rodrigues Date: Mon, 28 Mar 2011 12:15:19 -0700 Subject: [PATCH] #17518: Correcting temporary file name. --HG-- branch : 1.x --- .../Controllers/PackagingServicesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/PackagingServicesController.cs b/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/PackagingServicesController.cs index b42c3d9f8..ac92b210d 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/PackagingServicesController.cs +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/PackagingServicesController.cs @@ -134,7 +134,7 @@ namespace Orchard.Packaging.Controllers { } HttpPostedFileBase file = Request.Files.Get(0); - string fullFileName = Path.Combine(_appDataFolderRoot.RootFolder, file.FileName + ".nupkg").Replace(Path.DirectorySeparatorChar, '/'); + string fullFileName = Path.Combine(_appDataFolderRoot.RootFolder, Path.GetFileName(file.FileName)).Replace(Path.DirectorySeparatorChar, '/'); file.SaveAs(fullFileName); ZipPackage package = new ZipPackage(fullFileName); PackageInfo packageInfo = _packageManager.Install(package, _appDataFolderRoot.RootFolder, HostingEnvironment.MapPath("~/"));