Update ...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user