Skip to content

handles listing and upload based on field configuration#1288

Open
pauloamgomes wants to merge 2 commits intoagentejo:nextfrom
pauloamgomes:937-asset-limit-type
Open

handles listing and upload based on field configuration#1288
pauloamgomes wants to merge 2 commits intoagentejo:nextfrom
pauloamgomes:937-asset-limit-type

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