Whitelist upload MIME types per office island #150
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos#150
Loading…
Add table
Add a link
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?
The
Uploadbutton in every office island currently accepts any file. Uploadingcat.pngthrough Sheets succeeds at the hero_foundry level but produces a list entry that crashes OnlyOffice when clicked. Each island should restrict by itsDocType.Acceptance
DocTypeexposes anaccept_extensions()and/oraccept_mime()helper:Cell-> xlsx, xls, xlsm, xlsb, csv, ods, ots, fods, ...Word-> docx, doc, docm, odt, rtf, txt, ...Slide-> pptx, ppt, pptm, odp, ...Pdf-> pdfDiagram-> vsdx, vsdm, vssx, ...<input type=file>inFileListViewsets theacceptattribute from that helper so the OS picker filters by default.service::upload_file(orhero_office_serverif hero_foundry is the wrong layer) rejects mismatched extensions with a clear error rather than letting them land.