Skip to content
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

Bugfix/11405 temp uploads location restriction #14141

Merged
merged 13 commits into from
Jan 23, 2024

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jan 16, 2024

Description

If your tempUploadsLocation is set to a volume, don’t allow that volume to be selected in any Assets field.

  • adds validation rule to the Assets field that’ll check and prevent the field from being saved if the volume that’s selected as tempUploadsLocation is used as a source/sources, including selecting the “All” option, the default upload location source and restricted location source;
  • adds a warning to the Control Panel > Settings > Assets > Settings, under Temp Uploads Location

Please note that the volume set as tempUploadsLocation will still show on the list of available volumes when defining an Assets field. That’s because of the “All” option that’s stored in the settings of the field as *.

This should help with the issues described in #11405 until a full solution is introduced in Craft 5.

Related issues

#11405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants