Skip to content

Bugfix/618 dynamic upload subpath - #630

Merged
brandonkelly merged 9 commits into
5.xfrom
bugfix/618-dynamic-upload-subpath
Oct 6, 2026
Merged

brandonkelly merged 9 commits into
5.xfrom
bugfix/618-dynamic-upload-subpath

Conversation

@i-just

@i-just i-just commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue where an edit page for an element with a CKEditor field that has “insert image” in its toolbar won’t render and will throw an InvalidSubpathException exception.
This would happen if the CKEditor field has the “image mode” set to:

  • “image tags” and the “default upload location” contain a variable that can’t yet be resolved (e.g. {slug})
  • “nested entries” and selected image field points to one where “default upload location” contains a variable that can’t yet be resolved (e.g. {slug})

Note: if you want to use a dynamic default upload location based on data that is not always present throughout the entire lifecycle of an element (e.g. a slug that’s not there for new entries), you should configure the tempAssetUploadFs general setting to point to a filesystem that has public URLs.

Related issues

#618

@brandonkelly
brandonkelly merged commit 962a4a2 into 5.x Oct 6, 2026
6 checks passed
@brandonkelly
brandonkelly deleted the bugfix/618-dynamic-upload-subpath branch October 6, 2026 13:31
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.

[5.x]: InvalidSubpathException when Default Upload Location uses an object template like {slug}

2 participants