Laserfiche Forms Public Portal File Cleanup Tool

November 7, 2021 | KB: 1014322
Forms 10.2, Forms 10.3, Forms 10.4, Forms 11

Summary

The Laserfiche Forms Public Portal File Cleanup Tool is a diagnostic tool that can do the following:

  • List out public processes that may include a file upload field on the starting form
  • List out files uploaded to non-submitted or non-saved ("abandoned") public forms with an option to remove those files
  • List out files uploaded to saved public form drafts with an option to delete drafts older than a specified time frame

System Requirements

  • Microsoft .NET Framework 4.6 or later.
  • Laserfiche Forms 10.2 or later.
  • Must be run from the Laserfiche Forms Server.
  • If Forms is using the file volume storage feature, the user account running the tool must have sufficient rights to delete files from that volume location.

Click the following link to download a ZIP archive containing the tool:

Extract the contents of the ZIP archive to a location on the Laserfiche Forms Server.

The ZIP archive includes 2 files:

  • CleanupFileUploads.exe (1.0.0.0)
  • CleanupFileUploads.exe.config

Running the Tool

  1. Double-click CleanupFileUploads.exe to open the tool.

    Note: Make sure you are running the tool from the Forms machine.

  2. In the How to connect to Forms database section, choose between connecting through the Laserfiche Forms service or connecting directly to your Laserfiche Forms SQL database with a SQL connection string. Connecting through the Laserfiche Forms service requires the location of your Laserfiche Forms web.config (Default path: C:\Program Files\Laserfiche\Laserfiche Forms\Forms\web.config).
  3. Test the connection.
  4. Within each section use the Get List button to query the Forms database for the list of potential processes and files for review.
  5. The Processes That Might Have Public Upload Field section lists out Laserfiche Forms processes that may be potentially vulnerable to 1014315.
  6. The Non-submitted Forms Files section includes a Remove files button that will delete all listed files.

    Important: Removing non-submitted Forms files will remove files from forms actively being filled out. We recommend performing this action during off-hours.

  7. The Uploaded Public Draft Files section additionally includes a time period option. By default, the tool will filter for saved drafts older than 90 days. Configure the timer if you want to search for more recent saved drafts. The Remove Files and Drafts older than x days button will remove all saved drafts older than the specified time frame.