Skip to content

fix(next): do not require handlers, attempt to read filesystem or throw#5896

Merged
JarrodMFlesch merged 1 commit into
betafrom
fix/beta/get-file
Apr 17, 2024
Merged

fix(next): do not require handlers, attempt to read filesystem or throw#5896
JarrodMFlesch merged 1 commit into
betafrom
fix/beta/get-file

Conversation

@JarrodMFlesch
Copy link
Copy Markdown
Contributor

@JarrodMFlesch JarrodMFlesch commented Apr 17, 2024

Description

Fixes https://github.com/payloadcms/payload-3.0-demo/issues/92

Removes the requirement to provide a handler even if you disable local storage. Instead it will try handlers if they exist and fallback to attempting to read from the filesystem, throwing an error if it cannot find it.

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Chore (non-breaking change which does not add functionality)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation

@JarrodMFlesch JarrodMFlesch merged commit 93ee452 into beta Apr 17, 2024
@JarrodMFlesch JarrodMFlesch deleted the fix/beta/get-file branch April 17, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant