Update ...

This commit is contained in:
2026-10-22 23:30:09 +03:30
parent e9dd3b78f2
commit d0234fef2c
4 changed files with 10 additions and 153 deletions
+3 -4
View File
@@ -4,7 +4,6 @@ using System.Linq;
using xCommons.Constants;
using xCommons.Extensions;
using xExceptions.Constants;
using xStorageService.Constants;
namespace xStorageService.Helpers {
public partial class XStorageHelper {
@@ -63,7 +62,7 @@ namespace xStorageService.Helpers {
/// <returns>an string array</returns>
public string[] GetAllowedExtensionsForWidgetUpload () {
return new [] {
FileExtensions.SAHER_DASHBOARD_WIDGET.GetStringValue ()
XFileExtensions.SAHER_DASHBOARD_WIDGET.GetStringValue ()
};
}
@@ -120,8 +119,8 @@ namespace xStorageService.Helpers {
public int GetExtensionType (string fileExtension) {
//
foreach (var extItem in Enum
.GetValues (typeof (FileExtensions))
.Cast<FileExtensions> ()) {
.GetValues (typeof (XFileExtensions))
.Cast<XFileExtensions> ()) {
if (extItem.GetStringValue ()
.Contains (fileExtension.ToLower ())) {
return (int) extItem;