/// <summary>
    /// Returns additional parameters needed by the handler.
    /// </summary>
    private string GetAdditionalParameters()
    {
        string[] args =
        {
            "SourceType",          SourceType.ToString(),
            "ParentElementID",     ParentElemID,
            "IsInsertMode",        IsInsertMode.ToString(),
            "AfterSaveJavascript", AfterSaveJavascript,
            "TargetFolderPath",    TargetFolderPath,
            "TargetFileName",      TargetFileName,
            "IncludeNewItemInfo",  IncludeNewItemInfo.ToString(),
            "OnlyImages",          OnlyImages.ToString(),
            "RaiseOnClick",        RaiseOnClick.ToString(),
            "TargetAliasPath",     TargetAliasPath,
            "TargetCulture",       TargetCulture,
            "EventTarget",         EventTarget
        };

        if (AttachAdditionalParameters != null)
        {
            MfuAdditionalParameterEventArgs eventArgs = new MfuAdditionalParameterEventArgs();
            eventArgs.AddParameters(args);
            AttachAdditionalParameters(this, eventArgs);
            args = eventArgs.GetParameters();
        }


        return("AdditionalParameters=" + GetArgumentsString(args, UploaderHelper.ADDIOTIONAL_PARAMETERS_HASHING_PURPOSE));
    }
Example #2
0
    /// <summary>
    /// Returns additional parameters needed by the handler.
    /// </summary>
    private string GetAdditionalParameters()
    {
        string[] args =
        {
            "SourceType",          SourceType.ToString(),
            "ParentElementID",     ParentElemID,
            "IsInsertMode",        IsInsertMode.ToString(),
            "AfterSaveJavascript", AfterSaveJavascript,
            "TargetFolderPath",    HttpUtility.UrlEncode(TargetFolderPath),
            "TargetFileName",      HttpUtility.UrlEncode(TargetFileName),
            "IncludeNewItemInfo",  IncludeNewItemInfo.ToString(),
            "OnlyImages",          OnlyImages.ToString(),
            "RaiseOnClick",        RaiseOnClick.ToString(),
            "TargetAliasPath",     TargetAliasPath,
            "TargetCulture",       TargetCulture,
            "EventTarget",         EventTarget
        };

        if (AttachAdditionalParameters != null)
        {
            MfuAdditionalParameterEventArgs eventArgs = new MfuAdditionalParameterEventArgs();
            eventArgs.AddParameters(args);
            AttachAdditionalParameters(this, eventArgs);
            args = eventArgs.GetParameters();
        }


        return("AdditionalParameters=" + GetArgumentsString(args));
    }