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

Image validation broken in jeroendesloovere/vcard dependency #11

Open
dGilli opened this issue Jan 26, 2022 · 2 comments
Open

Image validation broken in jeroendesloovere/vcard dependency #11

dGilli opened this issue Jan 26, 2022 · 2 comments

Comments

@dGilli
Copy link

dGilli commented Jan 26, 2022

Craft sends image header content-type: image/jpeg in lower case. Used dependency jeroendesloovere/vcard only validates 'Content-Type' as upper-case. Thus throwing an invalid image error.

HTTP headers should always be treated case insensitive: jeroendesloovere/vcard#194

@Satvik-web
Copy link

Hey @dGilli!
Greetings from. India, TamilNadu!

If you are trying to create a VCard.. Then you are in the right place! I have created a nuget package with helps you to achieve it.. I have given the implementation in GitHub readme.md file..
You can install it using the following command using the package manager console..

PM> Install-Package VCard -Version 1.0.0

Nuget link: https://www.nuget.org/packages/VCard/

Github Link : https://github.com/Satvik-web/VCard

@nfourtythree
Copy link
Owner

Hi @dGilli

I have just tested using an image with the latest version of the plugin and couldn't replicate the issue.

I see you have raised it in the vcard repo too, so hopefully, that helps.

Thanks.

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

3 participants