File upload names #233
Notifications
Total Time Spent: 1 hour 20 minutes
fen
1 hour 20 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#233
Reference in New Issue
Block a user
When a file is uplaoded if there is no name already typed it should try to fill the name for the paste to be the file.
If its unable to do the name properly or there is something that breaks it should fallback to date.fileextension
QA PASS (fix attempt 1). Rendered CDP probe against live palette-dev after merge+deploy (served new.js sha256 matches dev tip 6129050c): named file -> title my_script.py; typed title preserved; empty-name file -> fallback 2026-09-10 (date only, no usable ext); image still takes its name. go build + full go test pass. No console CSP violations; no other consumers of the title auto-fill path affected.
QA PASS (PR #236, merge dbcdd1b/a9f94ce on dev). Live-verified on palette-dev via CDP probe against /new: (1) attach file "my notes.txt" with blank title -> title fills "my notes.txt"; (2) file with unusable/empty name -> fallback date "2026-09-10"; (3) non-blank title -> never overwritten. Served /static/new.js sha256 matches git show origin/dev (pod current, CI docker success on dev tip). No CSP/console errors observed during probe.