Skip to content

feat(FileUploader): Fix $extentions typo and inconsistent naming #55

@usernane

Description

@usernane

Problem Statement

Several naming inconsistencies exist:

  • $extentions property in FileUploader is a typo — should be $extensions
  • setDir() vs deprecated setPath()setPath() is still used internally in the constructor
  • Method naming is inconsistent: addExt() / addExts() / removeExt() vs getExts()

Proposed Solution

  • Rename $extentions to $extensions
  • Remove internal usage of deprecated setPath(), use setDir() consistently
  • Consider renaming getExts() to getExtensions() (with getExts() as deprecated alias)

Alternatives Considered

  • Keeping the typo for backward compatibility (not worth it for a private property)

Breaking Change

No — $extentions is private. Method renames would need deprecation aliases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions