Skip to content

[FEATURE] Extend ImageUploadResponse, VideoUploadResponse, FileUploadResponse with metadata #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
whitetown opened this issue Mar 20, 2025 · 0 comments
Open
1 task done

Comments

@whitetown
Copy link
Contributor

Is this a unique feature?

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant