Logo
Explore Help
Register Sign In
yujunjun/AppFlowy
1
0
Fork 0
You've already forked AppFlowy
mirror of https://github.com/AppFlowy-IO/AppFlowy.git synced 2025-07-18 06:26:02 +00:00
Code Issues Packages Projects Releases Wiki Activity
AppFlowy/frontend/appflowy_flutter/lib/util/file_extension.dart

12 lines
200 B
Dart
Raw Normal View History

feat: optimize image block (#4553) * feat: add tooltip for maximum image size * feat: add maximum upload image size tooltip * feat: limit image size to 10MB * fix: disable copy link option for cloud image * fix: disable copy link option for cloud image * feat: use regex to match the appflowy.cloud image
2024-01-30 22:39:42 +08:00
import 'dart:io';
extension FileSizeExtension on String {
int? get fileSize {
final file = File(this);
if (file.existsSync()) {
return file.lengthSync();
}
return null;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 434ms Template: 18ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API