Keep page files in the shared drive's Media folder, not Blog

The folder isn't only for blog posts. A Blog folder made before this
can be renamed to Media in Drive; its files keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 19:33:19 -05:00
parent 6191322fea
commit b504c24fb0
5 changed files with 14 additions and 10 deletions

View file

@ -10,7 +10,7 @@
its own), with a folder per use: "Requests" for files sent
with the Request form, and so on. Each folder is found by
name, or made, the first time it's needed; a path such as
"Blog/2026" makes each level.
"Media/2026" makes each level.
Gmail new-request notices, sent as a Workspace user through
domain-wide delegation.
Groups who is in the admin access groups (accessGroups.js), read
@ -121,7 +121,7 @@ const FOLDER = "application/vnd.google-apps.folder";
const folders = new Map();
/* The id of a folder in the shared drive, eg. "Requests" or
"Blog/2026", made if it isn't there. Found by name, so a folder
"Media/2026", made if it isn't there. Found by name, so a folder
renamed in Drive is made again under the old name. */
export function driveFolder(path) {
let pending = folders.get(path);

View file

@ -42,7 +42,7 @@ import { NO_STORE } from "../shape.js";
const files = new Hono();
files.use("*", requireAuth);
const FOLDER = "Blog";
const FOLDER = "Media";
const MAX_FILE_BYTES = 50 * 1024 * 1024;
const MAX_LIST = 500;
// Seconds after upload to ask Drive for the preview again.