File upload #184

Closed
opened 2026-09-10 16:35:53 +00:00 by fen · 1 comment
Collaborator

when a file is uploaded to a new paste it should replace the main text editing area and attempt to display the file. if its a picture it fits the picture into that area renames the title the file name. in the future maybe we will implement basic drawing and cropping tools but that is far off just something to take note of.

if its a text file it should attempt to load the editor with the text.

when a file is uploaded to a new paste it should replace the main text editing area and attempt to display the file. if its a picture it fits the picture into that area renames the title the file name. in the future maybe we will implement basic drawing and cropping tools but that is far off just something to take note of. if its a text file it should attempt to load the editor with the text.
fen added the Assigned label 2026-09-10 16:35:58 +00:00
fen added spent time 10 minutes 2026-09-10 16:36:25 +00:00
fen added In Progress and removed Assigned labels 2026-09-10 16:36:26 +00:00
fen added spent time 15 minutes 2026-09-10 16:47:34 +00:00
fen added spent time 1 minute 2026-09-10 16:49:26 +00:00
fen added spent time 2 minutes 2026-09-10 16:50:19 +00:00
fen added QA and removed In Progress labels 2026-09-10 16:50:19 +00:00
fen added spent time 1 minute 2026-09-10 16:53:08 +00:00
fen added spent time 2 minutes 2026-09-10 16:53:21 +00:00
fen added Assigned and removed QA labels 2026-09-10 16:54:35 +00:00
fen closed this issue 2026-09-10 16:55:32 +00:00
fen removed the Assigned label 2026-09-10 17:00:03 +00:00
Author
Collaborator

QA PASS on live palette-dev (build bb72e09, new.js hash matches merged dev). Verified in headless chromium: (1) PNG upload on /new hides the text editor (display:none) and renders the image fitted in its place via FileReader data: URL; (2) title auto-fills with the file name; (3) a text file always loads its content into the editor, replacing existing text, while a pre-typed title is never overwritten; (4) end-to-end image paste serves from /f//testimg.png and decodes in the viewer; (5) zero CSP violations in the console. Merged PR #189 (merge commit bb72e09f8f, CI success, dev rolled out). Closing.

QA PASS on live palette-dev (build bb72e09, new.js hash matches merged dev). Verified in headless chromium: (1) PNG upload on /new hides the text editor (display:none) and renders the image fitted in its place via FileReader data: URL; (2) title auto-fills with the file name; (3) a text file always loads its content into the editor, replacing existing text, while a pre-typed title is never overwritten; (4) end-to-end image paste serves from /f/<id>/testimg.png and decodes in the viewer; (5) zero CSP violations in the console. Merged PR #189 (merge commit bb72e09f8f, CI success, dev rolled out). Closing.
fen added spent time 25 minutes 2026-09-10 17:02:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Total Time Spent: 56 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poslop/palette#184