スキャン画面で「カメラ撮影」と「保存済み写真のアップロード」の両方を選べるようにする #10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
現状
/expenses/scan,/estimates/scanのfile inputにcapture="environment"があり、スマホではカメラが強制起動するため、撮り置きした写真を選べない。対応
スキャン画面に2つのフォームを用意:
capture="environment"付きinput(その場で撮影→送信)両方とも既存のPOST先(
/expenses/scan,/estimates/scan)に同名フィールドで送信する。サーバ側の変更は不要。実装しました。
mainにマージ済み。/expenses/scanと/estimates/scanの両方に以下の2フォームを追加:capture="environment"でカメラ直起動(既存挙動)サーバ側は既存のPOSTエンドポイントを共用。テスト52件パス。