AppFlowy/frontend/appflowy_flutter/lib/util/default_extensions.dart
Richard Shiue a79f825ff1
chore: restrict uploadable image types (#7269)
* chore: restrict image format

* chore: code cleanup
2025-01-23 10:51:15 +08:00

16 lines
425 B
Dart

/// List of default file extensions used for images.
///
/// This is used to make sure that only images that are allowed are picked/uploaded. The extensions
/// should be supported by Flutter, to avoid causing issues.
///
/// See [Image-class documentation](https://api.flutter.dev/flutter/widgets/Image-class.html)
///
const List<String> defaultImageExtensions = [
'jpg',
'png',
'jpeg',
'gif',
'webp',
'bmp',
];