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

Fix the allowed extensions for uploading .env files #625

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Nov 20, 2023

What does this PR do?

It should not include the leading dot because the InputFile component adds the leading prefix so including the leading dot results in an extra dot like:

image

Test Plan

Before the change, .env files were not selectable:

Screen Shot 2023-11-20 at 10 06 07 AM

and trying to drag a .env file into the modal results in:

image

After the change, I can now select any file including .env files.

image

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

Yes

Copy link

vercel bot commented Nov 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:06pm
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:06pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:06pm
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 8:06pm

@TorstenDittmann
Copy link
Contributor

I think we should just allow all extensions. There is also cases of .env.production and co.

@stnguyen90 stnguyen90 marked this pull request as draft December 21, 2023 19:41
Remove the file extension restriction because it can be named anything
including .env.local, .env.production, etc.
@eldadfux eldadfux merged commit c1504a6 into main Dec 22, 2023
5 checks passed
@ArmanNik ArmanNik deleted the fix-env-upload-allowed-extensions branch December 22, 2023 09:57
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

Successfully merging this pull request may close these issues.

3 participants