-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0.2]: Twig variable in asset folder path causes upload button to not be displayed if folder doesn't exist #11254
Comments
Thanks for pointing that out! Just fixed for the next release. |
Craft 4.0.3 is out now with that fix. |
I have updated to 4.0.3 and it's now working as expected using Should I be able to use access globalSet variables in the folder subpath? - e.g. I have a globalSet named "global" with a text field, "mytext" (which is a single word, no spaces)? If I use
|
You would need to use normal Twig syntax for that ( |
Thank you for responding and providing those tips! |
What happened?
Description
Upload button not displayed on file selection modal due to twig variable used in sub folder path for a path that doesn't exist, e.g. if using
{slug}
in the folder pathSteps to reproduce
{slug}
in the subfolder pathExpected behavior
Event though the folder for the slug doesn't appear (as this would be created when the entry is created), the upload button should be displayed in the file selection modal.
Craft CMS version
4.0.2
PHP version
8.1.5
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: