File upload #184
Notifications
Total Time Spent: 56 minutes
fen
56 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#184
Reference in New Issue
Block a user
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.
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 commitbb72e09f8f, CI success, dev rolled out). Closing.