What happened?
Steps to reproduce
On a fresh Craft 3.7.44 install, create a local Asset volume.
Go to Settings->Assets->Settings and select that volume as the "Temp Uploads Location"
Go to Assets Index page and create a subfolder. Upload an image to that subfolder.
Create an Assets field and add it to a section's field layout.
Create a new entry, click the Asset field, and select the uploaded asset from the subfolder.
Save the entry.
Notice, on the Assets Index page, that the asset now lives in the root of the volume, not the subfolder.
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
👀 React with 👀 1jamie-s-white