Skip to content

Commit

Permalink
fix module id upload folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha Trauwaen committed Mar 17, 2023
1 parent 2a74e62 commit 6189762
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OpenContent/Components/FileUploadController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ private void UploadWholeFile(HttpContextBase context, ICollection<FilesStatus> s
if (!string.IsNullOrEmpty(context.Request.Form["hidden"]) && // cropped file
context.Request.Form["hidden"] == "true")
{
uploadfolder = "OpenContent/" + (secure ? "Secure" : "") + "Cropped/" + ActiveModule.ModuleID;
//uploadfolder = "OpenContent/" + (secure ? "Secure" : "") + "Cropped/" + ActiveModule.ModuleID;
uploadfolder = "OpenContent/" + (secure ? "Secure" : "") + "Cropped/" + module.DataModule.ModuleId;
GetOrCreateFolder(secure, uploadfolder);
if (!string.IsNullOrEmpty(context.Request.Form["itemKey"]))
{
Expand Down Expand Up @@ -237,7 +238,7 @@ private void UploadWholeFile(HttpContextBase context, ICollection<FilesStatus> s
{
string uploadParentFolder = "OpenContent/" + (secure ? "Secure" : "") + "Files/";
GetOrCreateFolder(secure, uploadParentFolder);
uploadfolder = uploadParentFolder + ActiveModule.ModuleID + "/";
uploadfolder = uploadParentFolder + module.DataModule.ModuleId + "/";
if (module.Settings.Manifest.DeleteFiles)
{
if (!string.IsNullOrEmpty(context.Request.Form["itemKey"]))
Expand Down

0 comments on commit 6189762

Please sign in to comment.