Skip to content

Commit

Permalink
Add ZIP file support to attachment component
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Dec 5, 2023
1 parent 268f3ef commit 73d2c42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,10 @@ examples:
title: "Architects Registration Board annual report 2021"
url: https://arb.org.uk/wp-content/uploads/ARB-Annual-Report-and-Financial-Statement-2021-published.pdf
type: external
zip_archive:
data:
attachment:
title: "This is a zip file"
url: https://assets.publishing.service.gov.uk/media/64133adee90e0776a2d3df6c/car-petrol-data-2020.zip
content_type: application/zip
file_size: 12700000
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class SupportedContentType
{ content_type: "application/vnd.openxmlformats-officedocument.presentationml.presentation", name: "MS PowerPoint Presentation" }.freeze, # pptx
{ content_type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", name: "MS Excel Spreadsheet", spreadsheet: true }.freeze, # xlsx
{ content_type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", name: "MS Word Document", document: true }.freeze, # docx
{ content_type: "application/zip", abbr: "ZIP", name: "ZIP Archive" }.freeze,
{ content_type: "application/xml", abbr: "XML", name: "XML Document" }.freeze,
{ content_type: "image/gif", abbr: "GIF", name: "Graphics Interchange Format" }.freeze,
{ content_type: "image/jpeg", name: "JPEG" }.freeze,
Expand Down

0 comments on commit 73d2c42

Please sign in to comment.