We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f325b7f commit fac326cCopy full SHA for fac326c
site/src/components/TemplateVersionEditor/FileDialog.tsx
@@ -124,6 +124,13 @@ export const RenameFileDialog: FC<{
124
setError("File already exists")
125
return
126
}
127
+ if (!isAllowedFile(pathValue)) {
128
+ const extensions = allowedExtensions.join(", ")
129
+ setError(
130
+ `This extension is not allowed. You only can create files with the following extensions: ${extensions}.`,
131
+ )
132
+ return
133
+ }
134
onConfirm(pathValue)
135
setPathValue("")
136
0 commit comments