You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish I had seen this two days ago, I was just about to file a bug report with these very details... Although I absolutely agree that "no one would select a volume that was intended to serve public assets, which mitigates this problem", evidently my predecesor did, and lay this trap waiting for me when I started upgrading our Craft CMS websites past 3.7.16.
This issue also manifests itself when clicking preview, for whatever that is worth.
We’ve added guardrails to Craft 4.7, to help avoid this going forward (#14141 + 97a08f8):
Assets fields no longer list the temp volume under Sources, unless the temp volume was already explicitly selected.
If the temp volume was already explicitly selected, a validation error will occur the next time the Assets field is saved, until the volume has been deselected (unless “All” is chosen).
The temp volume will no longer be included for Assets fields where “All” was chosen.
The “Temp Uploads Location” setting now includes a warning not to select a volume that’s used by Assets fields.
Craft 5 goes further, by removing the “Temp Uploads Location” setting altogether, in favor of a new tempAssetUploadFs config setting, which defines a filesystem handle (explicitly or via an environment variable) that should be used to store temp asset uploads. (#13957)
What happened?
Steps to reproduce
Expected behavior
The asset should be in the subfolder.
Actual behavior
The asset is at the root of the volume.
Notes
This is likely a change in behavior caused by fa6fd63 that was released in 3.7.39.
Ideally, no one would select a volume that was intended to serve public assets, which mitigates this problem.
Things like the Asset field's source settings should remove any volumes so they can't be selected if "Temp Uploads Location" is set to a volume.
Craft CMS version
3.7.4.4
PHP version
7.4
Operating system and version
macOS
Database type and version
MariaDB 10
Image driver and version
imagick
Installed plugins and versions
None
The text was updated successfully, but these errors were encountered: