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
Folders are being created when a new entry containing an Asset field, that has been configured to use the {slug} as the Default Upload Location, is created.
The folders are named after the draft, ex. temp_sftzbaeqedinubfrccouaofyfyyintwesbod. These folders are automatically created, even before an asset is uploaded on the field. The field just needs to be present on the entry type.
Steps to reproduce
Create an Asset field and add {slug} to the Default Upload Location.
Add the field to an entry type which has drafts enabled.
Create a new entry using the entry type.
Expected behavior
No folders linked to the draft to be created on each new entry.
Actual behavior
Folders linked to the draft being created on each new entry.
Craft CMS version
4.4.13
PHP version
No response
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:
Since this fix, Default Upload Location does not seem to work for me anymore. Does not work with a dynamic path (e.g. {slug} or {section}) and does not work with a fixed path (e.g. "/pages"). Worked perfectly on Craft 4.4.12.
@sandrodunkel, I just did a quick test and the “Default Upload Location” works as expected when uploading directly into an assets field (via the “Upload files” button).
When using the “Add an asset” button, the user can choose the location to upload to (within what’s allowed by the field).
What happened?
Description
Folders are being created when a new entry containing an Asset field, that has been configured to use the
{slug}
as the Default Upload Location, is created.The folders are named after the draft, ex.
temp_sftzbaeqedinubfrccouaofyfyyintwesbod
. These folders are automatically created, even before an asset is uploaded on the field. The field just needs to be present on the entry type.Steps to reproduce
{slug}
to the Default Upload Location.Expected behavior
No folders linked to the draft to be created on each new entry.
Actual behavior
Folders linked to the draft being created on each new entry.
Craft CMS version
4.4.13
PHP version
No response
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: