File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ type AppSettings struct {
17
17
Grants map [string ][]string `json:"grants,omitempty"`
18
18
MigratePermissionsToV2 * bool `json:"migrate_permissions_to_v2,omitempty"`
19
19
PermissionVersion string `json:"permission_version,omitempty"`
20
+ FileUploadConfig * FileUploadConfig `json:"file_upload_config,omitempty"`
21
+ ImageUploadConfig * FileUploadConfig `json:"image_upload_config,omitempty"`
20
22
}
21
23
22
24
func (a * AppSettings ) SetDisableAuth (b bool ) * AppSettings {
@@ -58,6 +60,13 @@ func NewAppSettings() *AppSettings {
58
60
return & AppSettings {}
59
61
}
60
62
63
+ type FileUploadConfig struct {
64
+ AllowedFileExtensions []string `json:"allowed_file_extensions,omitempty"`
65
+ BlockedFileExtensions []string `json:"blocked_file_extensions,omitempty"`
66
+ AllowedMimeTypes []string `json:"allowed_mime_types,omitempty"`
67
+ BlockedMimeTypes []string `json:"blocked_mime_types,omitempty"`
68
+ }
69
+
61
70
type APNConfig struct {
62
71
Enabled bool `json:"enabled"`
63
72
Development bool `json:"development"`
You can’t perform that action at this time.
0 commit comments