Let the image picker take photos sent with requests

A From requests tab in every image picker lists photos from the
Request form (they live in Drive), the request being edited from
first. Picking one copies it into the media library, in the field's
folder, once per file, and the field gets that copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 00:11:01 -05:00
parent 110b655d5e
commit 6ccbc03b52
3 changed files with 128 additions and 8 deletions

View file

@ -58,7 +58,7 @@ let lastScan = 0;
/* Tables that can't hold an image path, or mustn't be searched. */
const NOT_CONTENT = new Set(["media", "drive_files", "admin_users", "sessions", "feedback", "feedback_files", "sqlite_sequence"]);
function shape(row) {
export function shape(row) {
return {
id: row.id,
// A hand-copied file keeps its own name, which may need escaping