Skip to content
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

How to add custom attributes using custom upload adapter? #8192

Closed
dzpt opened this issue Sep 30, 2020 · 1 comment
Closed

How to add custom attributes using custom upload adapter? #8192

dzpt opened this issue Sep 30, 2020 · 1 comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@dzpt
Copy link

dzpt commented Sep 30, 2020

I want to put few extra attributes to the img tag while using custom upload adapter like this

<img data-id='123' src='....' />

Since the upload API only accepts Promise object with uploaded urls, i don't know how do i do it.

{
	default: 'http://server/default-size.image.png',
	'160': 'http://server/size-160.image.png',
	'500': 'http://server/size-500.image.png',
	'1000': 'http://server/size-1000.image.png',
	'1052': 'http://server/default-size.image.png'
}
@dzpt dzpt added the type:feature This issue reports a feature request (an idea for a new functionality or a missing option). label Sep 30, 2020
@Mgsy
Copy link
Member

Mgsy commented Nov 6, 2020

Hi, thanks for the report. Actually, we have a feature request for custom attributes in upload adapters (with a proposed solution which might interest you), so I'm closing it as a duplicate.

@Mgsy Mgsy closed this as completed Nov 6, 2020
@Mgsy Mgsy added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests

2 participants