UploadSettings class
namespace: Serenity.Web assembly: Serenity.Net.Services
Upload settings
public class UploadSettings : IOptions<UploadSettings>
Public Members
name | description |
---|---|
UploadSettings() | Creates a new instance of the class |
ExtensionBlacklist { get; set; } | List of blacklisted extensions |
ExtensionBlacklistExclude { get; set; } | This allows excluding some extensions from ExtensionBlacklist without having to write all the default extensions in ExtensionBlacklist |
ExtensionBlacklistInclude { get; set; } | This allows including additional extensions in ExtensionBlacklist without having to write all the default extensions in ExtensionBlacklist |
ExtensionWhitelist { get; set; } | List of whitelisted extensions; Even if an extension is in this list, it won't be allowed if it is also in the ExtensionBlacklist |
ExtensionWhitelistExclude { get; set; } | This allows excluding some extensions from ExtensionWhitelist without having to write all the default extensions in ExtensionWhitelist |
ExtensionWhitelistInclude { get; set; } | This allows including additional extensions to ExtensionWhitelist without overriding all the default extensions in ExtensionWhitelist |
Path { get; set; } | Root path for uploads, default is "App_Data/upload/" |
Url { get; set; } | Root ur for uploads, default is "~/upload" |
Value { get; } | Gets this instance |
const SectionKey | The default section key in appsettings.json |
See Also
- Source: UploadSettings.cs