Skip to content

Commit

Permalink
PSP-7083 : Include msg file types in allowed document formats (#3589)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Herrera <[email protected]>
Co-authored-by: Alejandro Sanchez <[email protected]>
  • Loading branch information
3 people authored Nov 10, 2023
1 parent 4071924 commit 49f0aa2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/backend/api/Services/DocumentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class DocumentService : BaseService, IDocumentService
"gml",
"kml",
"kmz",
"msg",
};

private readonly IDocumentRepository documentRepository;
Expand Down
1 change: 1 addition & 0 deletions source/frontend/src/constants/ValidDocumentExtensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const ValidDocumentExtensions: string[] = [
'gml',
'kml',
'kmz',
'msg',
];

export default ValidDocumentExtensions;
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ exports[`DocumentUploadView component renders as expected 1`] = `
class="pt-2"
>
<input
accept=".txt,.pdf,.docx,.doc,.xlsx,.xls,.html,.odt,.png,.jpg,.bmp,.tif,.tiff,.jpeg,.gif,.shp,.gml,.kml,.kmz"
accept=".txt,.pdf,.docx,.doc,.xlsx,.xls,.html,.odt,.png,.jpg,.bmp,.tif,.tiff,.jpeg,.gif,.shp,.gml,.kml,.kmz,.msg"
data-testid="upload-input"
id="uploadInput"
name="documentFile"
Expand Down

0 comments on commit 49f0aa2

Please sign in to comment.