-
Notifications
You must be signed in to change notification settings - Fork 635
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
[3.x]: Unexpected behavior when an Asset field is using a volume that has been set as the "Temp Uploads Location" #11405
Comments
This is still affecting Craft 4.5.9 and 3.9.5. Can confirm it doesn't affect 3.7.16. 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):
Craft 5 goes further, by removing the “Temp Uploads Location” setting altogether, in favor of a new |
Craft 4.7.0 is now tagged with those changes. |
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: