mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: add media upload to news editor with drag-drop, paste, and file picker
Upload images/videos directly to server from editor. DOMPurify video sanitization, XSS protection, upload cancellation on unmount.
This commit is contained in:
@@ -57,3 +57,13 @@ export interface NewsCreateRequest {
|
||||
export interface NewsUpdateRequest extends Partial<NewsCreateRequest> {
|
||||
id?: never;
|
||||
}
|
||||
|
||||
export interface NewsMediaUploadResponse {
|
||||
url: string;
|
||||
thumbnail_url: string | null;
|
||||
media_type: 'image' | 'video';
|
||||
filename: string;
|
||||
size_bytes: number;
|
||||
width: number | null;
|
||||
height: number | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user