Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat: Camera should allow for additional `accept` types for file selection

オープン
#80 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

まず、src/components/camera/camera.tsx の 466-471 行付近を読み、ローカルファイルの選択に image/* がハードコードされている箇所を確認します。カメラ設定がその入力にどのように渡るかを追跡し、要求された accept 値を指定できることを確認します。image/* だけでなく、image/png,image/jpeg のような値をサポートできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement

ionic/pwa-elements version:

@ionic/[email protected]

I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request

Current behavior:
At the moment accept="image/*" is hard coded as accepted input types, when users choose to select a local file/file from disk.

Expected behavior:
Enable configuration of PWA camera for specifying accepted input types e.g. accept="image/png,image/jpeg"

Related code:
https://github.com/ionic-team/pwa-elements/blob/6e1394a00b891a0242fea1f41b151681f1012d2a/src/components/camera/camera.tsx#L466-L471

Other information:
https://forum.ionicframework.com/t/restrict-file-types-in-pwa-camera-from-ionic-pwa-elements-when-selecting-local-image/208222

主要言語
TypeScript
スター
171
フォーク
50
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/pwa-elements のほかの issue

ionic-team/pwa-elements の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。