UploadSettings class
namespace: Serenity.Web assembly: Serenity.Net.Services
Upload settings
public class UploadSettings : IOptions<UploadSettings>
Public Members
| name | description |
|---|---|
| UploadSettings() | Initializes a new instance of the class. |
| EditableMetadataKeys { get; set; } | Semicolon separated list of custom metadata keys that are allowed to be set by client |
| 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; } | Gets or sets the root path for uploads, default is "App_Data/upload/". |
| Url { get; set; } | Gets or sets the root URL for uploads, default is "~/upload". |
| Value { get; } | Gets this instance. |
| const SectionKey | The default section key in appsettings.json |
See Also
- Source: UploadSettings.cs