getgrav / getgrav/grav-plugin-admin

filepicker field: JPG extension images are ignored

Open
#1,295 2 comments 0 reactions 0 assignees View on GitHub
evaluating
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Hi,

In my blueprint I setup my ```filepicker``` field like this:

```
header.my_field:
label: Image
type: filepicker
folder: '@self'
preview_images: true
accept:
- .png
- .jpg
```

But the field doesn't show *.JPG files. Should the field include JPG and PNG images in the list by default? "JPG" or "jpg" is just the way we type and save the files, they are all the same file type.

I have Grav v1.3.10 - Admin v1.6.7 .

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the supplied filepicker blueprint with uppercase .JPG files alongside .jpg and .png files, then trace the filepicker field's filtering behavior. Done means the field lists both uppercase and lowercase JPG images as well as PNG images; the issue names no implementation file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.