Nova Ckeditor
  • 🏁Getting Started
    • Introduction
    • Installation
    • Support Us
    • License
    • Demo
  • 🚀Basic Usage
    • Usage
    • Notes
  • ⚙️Advanced Usage
    • Customize ImageStorage
    • Integrating NovaFileArtisan (Larupload) with Image Resource
    • Customize AudioStorage
    • Customize FileStorage
    • Multiple Toolbars
    • Customize Toolbar Items
    • Media Embed
    • CkEditor Field Options
      • Toolbar
      • Height
      • Limit On Index
      • Content Language
      • Force Paste as Plain Text
      • Alert Before Unsaved Changes
      • Text Part Language
      • General HTML Support
      • Group Items In Overflow Mode
      • Image Browser
      • Audio Browser
      • Video Browser
      • File Browser
      • Snippets
    • Configuration
      • Video Model
      • Image Model
      • Memory
      • Max Image Quality
      • Image Max Width
      • Image Max Height
      • Image Naming Method
      • Image Processing Library
      • Audio Naming Method
      • File Naming Method
      • Toolbars
        • Default Toolbar
        • Toolbar 1
          • Height
          • Items
          • Options
          • Content Lang
          • Force Paste as Plain Text
          • Alert Before Unsaved Changes
          • UI Language
            • UI Language Name
            • UI Language Script
          • Text Part Language
          • General HTML Support
          • Group Items In Overflow Mode
          • Image Browser
          • Audio Browser
          • Video Browser
          • File Browser
          • Insert Image Types
          • Insert Image Size
          • Snippets
  • ⚪Other
    • Migration
    • Credit and Thanks
Powered by GitBook
On this page
Edit on GitHub
  1. Advanced Usage
  2. Configuration

File Naming Method

file-naming-method

Property Name
Type
Default

file-naming-method

string

hash-file

The file-naming-method configuration option allows you to specify the naming method for uploaded files within the CKEditor field. This setting determines how files will be named when they are saved to the storage.

By default, the file-naming-method configuration option is set to hash-file, which generates a unique hash-based name for each uploaded file. This helps avoid naming conflicts and ensures uniqueness of the file names.

The available naming methods for the file-naming-method configuration option are as follows:

  • hash-file: This method generates a unique hash-based name for each uploaded file.

  • real-file-name: This method retains the original file name of the uploaded file.

  • unique-real-file-name: This method retains the original file name but adds a unique identifier to prevent naming conflicts.

To configure the file-naming-method option, update the value in the configuration file config/nova-ckeditor.php with the desired naming method.

This feature was introduced in version 7.3.0 of the NovaCKEditor

PreviousAudio Naming MethodNextToolbars

Last updated 5 months ago

⚙️