Skip to content

File->getDestination fails without extension #2103

Description

@MGatner

Describe the bug
Calling $file->move() and providing a new filename without an extension causes a failed array reference because pathinfo() does not have an extension key in the resulting array.

CodeIgniter 4 version
Latest develop

Affected module(s)
File Class, HTTPFile Class

Context

  • OS: Linux
  • Web server: Apache
  • PHP version: 7.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions