Skip to content

fix: get external resource blocked - #12927

Merged
denolfe merged 14 commits into
mainfrom
fix/url-filters
Jun 26, 2025
Merged

denolfe merged 14 commits into
mainfrom
fix/url-filters

Conversation

@kendelljoseph

@kendelljoseph kendelljoseph commented Jun 24, 2025 •

Copy link
Copy Markdown
Contributor

Fix

  • Use [Config].upload.skipSafeFetch to allow specific external urls
  • Use [Config].upload.pasteURL.allowList to allow specific external urls

Documentation: Uploading files from remote urls

Fixes: #12876
Mentioned: #7037, #12934
Source PR: #12622
Issue Trace:

  1. allowList Added

  2. allowList Removed

@kendelljoseph
kendelljoseph requested a review from denolfe June 24, 2025 20:37
@kendelljoseph
kendelljoseph marked this pull request as ready for review June 25, 2025 13:59

@denolfe denolfe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few small things should be improved.

Also be sure to add Fixes # if this PR fixes any open issues. I see related ones are listed but just wanted to be sure.

Let's run through testing this against real S3 or R2 today.

Comment thread packages/payload/src/uploads/types.ts Resolved
@kendelljoseph kendelljoseph self-assigned this Jun 25, 2025
@kendelljoseph kendelljoseph changed the title fix: allowlist on external urls fix: get external resource Jun 25, 2025
@kendelljoseph kendelljoseph changed the title fix: get external resource fix: get external resource blocked Jun 25, 2025
@denolfe
denolfe merged commit a7ad573 into main Jun 26, 2025
@denolfe
denolfe deleted the fix/url-filters branch June 26, 2025 19:24
kendelljoseph added a commit that referenced this pull request Jun 26, 2025
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.44.0

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage-s3: Changing uploaded Media fails with "Blocked unsafe attempt" in v3.43.0

2 participants