Skip to content

Assets - 'Allow uploading directly to the field' unexpected results #10145

Answered by brandonkelly
anchovy asked this question in Ideas
Discussion options

You must be logged in to vote

You can disable the “Allow uploading directly to the field” setting for all existing Assets fields by doing the following:

  1. Run the command:

    php craft project-config/rebuild
  2. In a text editor, use the Find & Replace feature to replace all instances of allowUploads: true with allowUploads: false in your config/project/ folder.

  3. Run the following commands:

    php craft project-config/touch
    php craft project-config/apply

Adding a new config setting would probably just make things more confusing. In general we are trying to move away from config settings that conflict with other settings.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@anchovy
Comment options

@brandonkelly
Comment options

@anchovy
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
assets 📁 features related to asset management
2 participants