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

[BUG] Image field does not check extension #7721

Open
JarJak opened this issue Dec 6, 2018 · 2 comments
Open

[BUG] Image field does not check extension #7721

JarJak opened this issue Dec 6, 2018 · 2 comments
Labels
bug A bug that has been verified keep

Comments

@JarJak
Copy link
Member

JarJak commented Dec 6, 2018

Description:

I have a field:

        image:
            label: Photo
            type: image
            extensions: [ gif, jpg, jpeg, png ]

But I am able to select any file (for example pdf file) from file browser to this field. Only the uploader excludes invalid file types.

Steps to reproduce:

  1. Upload PDF file through another file field.
  2. Try to set uploaded PDF as value of image field
  3. Save

Expected result:

I would expect to not be able to select file other than types defined in field config
or an error on save.

Actual result:

Content saved without error, only the thumbnail displays an error.

@stale
Copy link

stale bot commented Feb 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. Maybe this issue has been fixed in a recent release, or perhaps it is not affecting a lot of people?
It will be closed if no further activity occurs, because we like to keep the issue queue concise and actual.
If you think this issue is still relevant, please let us know. Especially if you’d like to help resolve the issue, either by helping us pinpointing the cause of a bug, or in implementing a fix or new feature.

@stale stale bot added the stale Stale issues & PRs flagged for closing label Feb 7, 2019
@JarJak JarJak added bug A bug that has been verified keep and removed stale Stale issues & PRs flagged for closing labels Feb 7, 2019
@zomars
Copy link
Contributor

zomars commented Mar 6, 2019

Also I think the required attribute is not supported in an image field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that has been verified keep
Projects
None yet
Development

No branches or pull requests

2 participants