Skip to content

Commit 990cb29

Browse files
authored
Merge pull request #639 from TechnologyEnhancedLearning/Develop/Fixes/LH-TD-4256-file-formats-WebM-and-WMV
TD-4256: Assessment and Case Resource - Allows to upload unsupported …
2 parents 1657a06 + 14ea3f8 commit 990cb29

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/helpers/fileUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const MAX_FILE_SIZE = 10 * 1000 * 1000 * 1000; // 10GB
4949

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

5454
const IMAGE_FILE_EXTENSIONS = ['.apng', '.avif', '.bmp', '.cur', '.gif', '.ico', '.jfif', '.jpeg', '.jpg', '.pjp',
5555
'.pjpeg', '.png', '.psd', '.svg', '.tif', '.tiff', '.webp'];

WebAPI/LearningHub.Nhs.Database/LearningHub.Nhs.Database.sqlproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@
524524
<Build Include="Stored Procedures\Resources\GetAchievedCertificatedResourcesWithOptionalPagination.sql" />
525525
<Build Include="Stored Procedures\Hierarchy\GetCatalogues.sql" />
526526
<Build Include="Stored Procedures\Hierarchy\GetCataloguesCount.sql" />
527+
<None Include="Scripts\Post-Deploy\Scripts\UpdateFileTypes.sql" />
527528
</ItemGroup>
528529
<ItemGroup>
529530
<None Include="Scripts\Pre-Deploy\Scripts\Card5766_AuthorTableChanges.PreDeployment.sql" />
@@ -594,4 +595,4 @@
594595
<ItemGroup>
595596
<None Include="Scripts\Post-Deploy\Scripts\ElfhExternalSystemsImport.sql" />
596597
</ItemGroup>
597-
</Project>
598+
</Project>

WebAPI/LearningHub.Nhs.Database/Scripts/Post-Deploy/Script.PostDeployment.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,6 @@ UPDATE [resources].[ResourceVersion] SET CertificateEnabled = 0 WHERE VersionSta
8181
:r .\Scripts\InitialiseDataForEmailTemplates.sql
8282
:r .\Scripts\TD-2929_ActivityStatusUpdates.sql
8383
:r .\Scripts\InitialiseDataForEmailTemplates.sql
84-
:r .\Scripts\AttributeData.sql
84+
:r .\Scripts\AttributeData.sql
85+
:r .\Scripts\UpdateFileTypes.sql
86+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
update resources.FileType set NotAllowed =1 where Extension='webm'

0 commit comments

Comments
 (0)