Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

[FEATURE] Extend ImageUploadResponse, VideoUploadResponse, FileUploadResponse with metadata

Open whitetown opened this issue 8 months ago • 0 comments

Is this a unique feature?

  • [x] I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.

It would be nice to add a possibility to include some metadata, an { key: value } object. In particular for now I want size for all types (image, video), not only file. I uploading files to S3 and I would like to save the Key. Right now I can get it from src but it would be more convenient. For video I would like to add a duration.

Proposed Solution

export type ImageElementProps = { src?: string | null; alt?: string | null; srcSet?: string | null; bgColor?: string | null; fit?: 'contain' | 'cover' | 'fill' | null; sizes?: ImageSizes; } & { metadata?: Record<string, any>; // Add metadata as an optional property };

Screenshots

No response

Do you want to work on this issue?

No

If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)

No response

whitetown avatar Mar 20 '25 15:03 whitetown