Media captures its upload filename as a display label #189
Labels
No labels
kind
bug
kind
enhancement
wayfinder
grilling
wayfinder
map
wayfinder
prototype
wayfinder
research
wayfinder
task
workflow
needs-info
workflow
needs-triage
workflow
ready-for-agent
workflow
ready-for-human
workflow
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rosa/vernier#189
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?
Parent
Implementation spec: Media management: Library page and editor picker — implementation spec (§1.1).
What to build
When a user uploads an image — through the post editor or the Micropub media endpoint — the Media remembers the filename it was uploaded under, as an opaque, read-only display label. Nothing renders it yet; the Library and picker tickets consume it. A Media uploaded without a filename simply has none, and everything uploaded before this ticket stays that way.
Acceptance criteria
MediaFilenamevalue type parses the client-supplied filename: basename only (clients may send paths), trimmed, blank or whitespace treated as absence, capped at 255 chars by truncating on a char boundary — over-long input is never rejected, since a cosmetic label must not fail an upload.mise run format,mise run ci, andmise run clippypass.Blocked by
None — can start immediately.