mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-22 09:18:08 +00:00
15 lines
436 B
C#
15 lines
436 B
C#
using System.IO;
|
|
using System.Linq;
|
|
|
|
namespace PodNoms.Api.Models.Settings {
|
|
|
|
public class FileStorageSettings {
|
|
public string ContainerName { get; set; }
|
|
public long MaxUploadFileSize { get; set; }
|
|
public string[] AllowedFileTypes { get; set; }
|
|
|
|
public bool IsSupported(string fileName) {
|
|
return AllowedFileTypes.Any(s => s == Path.GetExtension(fileName).ToLower());
|
|
}
|
|
}
|
|
} |