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

handles listing and upload based on field configuration #1288

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

pauloamgomes
Copy link
Contributor

@pauloamgomes pauloamgomes commented Apr 3, 2020

This should not break existing functionality and addresses #937

Having an asset field configured like:

{
  "pattern": "*.png|*.jpg|*.pdf"
}

When opening the assets dialog it will only list files matching the pattern.
When trying to upload an asset it will fail with an alert (UIKit uploadSelect) if file extension doesn't match the pattern.

@pauloamgomes pauloamgomes force-pushed the 937-asset-limit-type branch from fdfd6f8 to e56d8d3 Compare April 3, 2020 23:04
@aheinze
Copy link
Member

aheinze commented Apr 7, 2020

Thanks for the contribution! I'll try to check the PR soon!

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