FileSluggy

MODX Plugin to sanitize filename after uploading it.

Creator: Sterc Online Agency (sterc)

Need help installing this extra?

About FileSluggy

MODX Plugin that sanitizes the filename after it has been uploaded via the FileManager. Can also be used in snippets after the class is loaded.

Works with OnFileManagerUpload, OnFileManagerDirCreate and OnFileManagerDirRename system events. Also uses custom system events FileSluggyOnUpdateDirname and FileSluggyOnUpdateFilename for using in conjunction with other plugins that use the same system events. With system settings there are several customization options like:

  • adding a prefix
  • remove the filename
  • determine on which file types it should work
  • and more.
  • Constrain to media sources (from v1.1)
  • Bugs and Issues in git : https://github.com/Sterc/FileSluggy

    Information

    Released
    June 17, 2020

    Supported Database
    MySQL

    License
    GPLv2

    Supported Versions
    2.2 - <2.8

    Downloads
    7,942

    Instructions

    Download from MODX Extras Installer.

    New in 1.3.3-pl

    FileSluggy 1.3.3

    ==============

    - Added compatibilty for MODX 3 (flysystem).

    FileSluggy 1.3.2

    ==============

    - Prevent adding of guid to directories (issue #8).

    FileSluggy 1.3.2

    ==============

    - Wrap baseName in realpath function (Issue #10).

    - Remove check for resource/media browser pages (issue #15).

    - Add custom system events FileSluggyOnUpdateDirname and FileSluggyOnUpdateFilename

    FileSluggy 1.3

    ==============

    - Trigger plugin only on resource and media browser manager pages.

    FileSluggy 1.2

    ==============

    - Added directory name converting

    FileSluggy 1.1

    ==============

    - BugFixes: Issue #1 & Issue #2 : If File already has a good name don change the name.

    FileSluggy 1.0

    ==============

    - Initial release.

    January 21, 2016

    Filesluggy is now contentblocks compatible.

    Previous fixes

    #1 FileSluggy with a S3 Media Source#2 Marks a file as duplicate when filename is correct, and needs no changes.

    Previous new features

    #3 Constrain FileSluggy to mediasources

    Current releases

    1.3.5-pl
    View | Download
    June 1, 2022
    2.2 - <3.0

    1.3.4-pl
    View | Download
    September 23, 2020
    2.2 - <2.8

    1.3.3-pl
    View | Download
    June 17, 2020
    2.2 - <2.8

    1.3.1-pl
    View | Download
    November 1, 2016
    2.2 - <2.8