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

Can't upload .png #27

Closed
Fortr4n opened this issue Aug 25, 2023 · 1 comment
Closed

Can't upload .png #27

Fortr4n opened this issue Aug 25, 2023 · 1 comment
Labels
invalid This doesn't seem right question Further information is requested

Comments

@Fortr4n
Copy link

Fortr4n commented Aug 25, 2023

Hello I am having trouble expanding file support to support .png do I got to edit the firebase or storage rules?

@ccrsxx ccrsxx added the question Further information is requested label Aug 27, 2023
@ccrsxx
Copy link
Owner

ccrsxx commented Aug 27, 2023

It's already supported. Here's the validation file that's used in the project that allows .png image support:

const IMAGE_EXTENSIONS = [
'apng',
'avif',
'gif',
'jpg',
'jpeg',
'jfif',
'pjpeg',
'pjp',
'png',
'svg',
'webp'
] as const;

You can even test it yourself here on https://twitter-clone-ccrsxx.vercel.app.

@ccrsxx ccrsxx closed this as completed Aug 30, 2023
@ccrsxx ccrsxx added the invalid This doesn't seem right label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants