Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LearningHub.Nhs.WebUI/Scripts/vuesrc/helpers/fileUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const MAX_FILE_SIZE = 10 * 1000 * 1000 * 1000; // 10GB

// This list should correspond to the disallowed extensions contained in the FileType table
const BLOCKED_FILE_EXTENSIONS = ['.app', '.asp', '.aspx', '.dll', '.dmg', '.exe', '.flv', '.f4v', '.js', '.jsp',
'.php', '.shtm', '.shtml', '.swf'];
'.php', '.shtm', '.shtml', '.swf','.webm'];

const IMAGE_FILE_EXTENSIONS = ['.apng', '.avif', '.bmp', '.cur', '.gif', '.ico', '.jfif', '.jpeg', '.jpg', '.pjp',
'.pjpeg', '.png', '.psd', '.svg', '.tif', '.tiff', '.webp'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@
<Build Include="Stored Procedures\Resources\GetAchievedCertificatedResourcesWithOptionalPagination.sql" />
<Build Include="Stored Procedures\Hierarchy\GetCatalogues.sql" />
<Build Include="Stored Procedures\Hierarchy\GetCataloguesCount.sql" />
<None Include="Scripts\Post-Deploy\Scripts\UpdateFileTypes.sql" />
</ItemGroup>
<ItemGroup>
<None Include="Scripts\Pre-Deploy\Scripts\Card5766_AuthorTableChanges.PreDeployment.sql" />
Expand Down Expand Up @@ -594,4 +595,4 @@
<ItemGroup>
<None Include="Scripts\Post-Deploy\Scripts\ElfhExternalSystemsImport.sql" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ UPDATE [resources].[ResourceVersion] SET CertificateEnabled = 0 WHERE VersionSta
:r .\Scripts\InitialiseDataForEmailTemplates.sql
:r .\Scripts\TD-2929_ActivityStatusUpdates.sql
:r .\Scripts\InitialiseDataForEmailTemplates.sql
:r .\Scripts\AttributeData.sql
:r .\Scripts\AttributeData.sql
:r .\Scripts\UpdateFileTypes.sql

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update resources.FileType set NotAllowed =1 where Extension='webm'
Loading