Skip to content

fix(plugin-cloud-storage)!: Pass filename to utility function getting file prefix#5934

Merged
denolfe merged 1 commit into
payloadcms:betafrom
SimonVreman:fix-adapter-get-file-prefix
Apr 21, 2024
Merged

fix(plugin-cloud-storage)!: Pass filename to utility function getting file prefix#5934
denolfe merged 1 commit into
payloadcms:betafrom
SimonVreman:fix-adapter-get-file-prefix

Conversation

@SimonVreman
Copy link
Copy Markdown
Contributor

Description

Route params are still being accessed the old way, causing filename to be undefined. This in turn results in no documents being found, and thus the prefix also not being found. Files are then fetched from cloud storage without the prefix, causing a 404.

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

Type of change

  • Bug fix (non-breaking change which fixes an issue)

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

@SimonVreman SimonVreman requested a review from denolfe as a code owner April 20, 2024 15:10
@denolfe denolfe self-assigned this Apr 20, 2024
@denolfe denolfe changed the title fix: Pass filename to utility function getting file prefix fix(plugin-cloud-storage): Pass filename to utility function getting file prefix Apr 20, 2024
Copy link
Copy Markdown
Member

@denolfe denolfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Some e2e tests will likely be added before release for things like this.

@denolfe denolfe changed the title fix(plugin-cloud-storage): Pass filename to utility function getting file prefix fix(plugin-cloud-storage)!: Pass filename to utility function getting file prefix Apr 21, 2024
@denolfe denolfe merged commit 68274d2 into payloadcms:beta Apr 21, 2024
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.

2 participants