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-12-07 20:47:10 +00:00
Code Issues Packages Projects Releases Wiki Activity
AppFlowy/frontend/appflowy_tauri/src/appflowy_app/utils/upload_image.ts

10 lines
290 B
TypeScript
Raw Normal View History

feat: support uploading local image (#4820) * feat: support uploading local image * fix: code review * fix: add hover style to empty image block
2024-03-05 16:59:30 +08:00
export const MAX_IMAGE_SIZE = 10 * 1024 * 1024; // 10MB
fix: support upload and render image(.git, .webp, .svg) (#4841) * fix: add supported extension of image * fix: display of select options when no typing * chore: focus end when cell input actived * fix: modified checklist keyboard event
2024-03-08 14:15:57 +08:00
export const ALLOWED_IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'gif', 'svg', 'webp'];
feat: support uploading local image (#4820) * feat: support uploading local image * fix: code review * fix: add hover style to empty image block
2024-03-05 16:59:30 +08:00
export const IMAGE_DIR = 'images';
export function getFileName(url: string) {
const [...parts] = url.split('/');
return parts.pop() ?? url;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 1904ms Template: 72ms
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