Skip to content

FileUltimate v9.3.4

Choose a tag to compare

@GleamTech GleamTech released this 04 Mar 02:01
· 25 commits to master since this release

Version 9.3.4 - March 3, 2025

  • Added: FileUploader.CustomParameters property which gets or sets the custom parameters for this uploader instance,
    to send along with the upload queue. These custom parameters can be retrieved in server-side events,
    for example to take an action depending on the parameters.

    The key of the dictionary is of string type.
    The value the dictionary is of object type which means you can set any value that is JSON serializable.
    For values, it's recommended to use primitive types like string, bool, int etc.

      //Set some custom parameters for this uploader instance, to send along with the upload queue.
      var fileUploader2 = new FileUploader
      {
          CustomParameters = new Dictionary<string, object>
          {
              {"MyParam1", "test"},
              {"MyParam2", true},
              {"MyParam3", 50}
          }
      };
      
      //Or set them like this:
      fileUploader.CustomParameters.Add("MyParam1", "test");
      fileUploader.CustomParameters.Add("MyParam2", true);
      fileUploader.CustomParameters.Add("MyParam3", 50);
    
    
      //In server-side events, you can examine your custom parameters via e.Queue.CustomParameters property
      //and take an action depending on them.
      fileUploader.Uploading += (sender, e) =>
      {
          //Casting can cause problems, e.g. (int)e.Queue.CustomParameters["MyParam3"]
          //especially for int types as when JsonDeserializer is deserializing numbers from a dictionary,
          //it treats them as long (int64).
          //So use methods of Convert to avoid casting problems.
    
          var myParam1 = Convert.ToString(e.Queue.CustomParameters["MyParam1"]);
          var myParam2 = Convert.ToBoolean(e.Queue.CustomParameters["MyParam2"]);
          var myParam3 = Convert.ToInt32(e.Queue.CustomParameters["MyParam3"]);
      };
  • Improved: Document Viewer:

    • Fixed: documentViewer.DebugMode property was not being respected on the client side.
      This property by default is false (unless you have the source code and compiled GleamTech.Common.dll with Debug configuration).
      So by default, error details should not be shown on DocumentViewer's error dialog.
      Although error details were reduced on the server, the details text box was still being shown.
      Also from now on, this property will also effect client-side errors, for example no details should be shown on local PDF opening errors.

Included example projects:

  • ASP.NET Core (C#) - Visual Studio 2019+
  • ASP.NET Core on .NET Framework (C#)- Visual Studio 2017+
  • ASP.NET MVC (C#) - Visual Studio 2015+
  • ASP.NET MVC (VB) - Visual Studio 2015+
  • ASP.NET WebForms (C#) - Visual Studio 2015+
  • ASP.NET WebForms (VB) - Visual Studio 2015+