Skip to content

Serve extensionless files #1599

@benwa

Description

@benwa

Describe the Bug

Within the \public directory, I allow users to upload files, which can no extension. When attempting to browse to that file, it will return a 404.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add an extensionless file to \public
  2. Attempt to browse or download the file
  3. Observe the 404 error

Expected Behavior

The extensionless file should be served, following the "Static Routes order" section at https://badgerati.github.io/Pode/Tutorials/Routes/Utilities/StaticContent/#static-routes-order

Platform

  • OS: Windows
  • Browser: Chrome
  • Versions:
    • Pode: 2.12.1
    • PowerShell: 7.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions