Skip to content

Commit bf33fa2

Browse files
committed
fix zip validation 4 windows
1 parent b485e78 commit bf33fa2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
# local env files
66
.env.local
77
.env.*.local
8+
.env
89

910
# Log files
1011
npm-debug.log*

src/components/projects/save-project.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
v-if="importProject"
2727
v-model="file"
2828
:rules="[
29-
(val) => !val || val.type === 'application/zip' || 'File must be a .zip',
29+
(val) => !val || /^application\/(x-)?zip/.test(val.type) || 'File must be a .zip',
3030
]"
3131
:error-messages="[unzipError, inoError].filter(v => v)"
3232
label="Upload Project Zip"
33-
accept="application/zip"
33+
accept=".zip,application/zip,application/x-zip,application/x-zip-compressed"
3434
outlined
3535
show-size
3636
/>

0 commit comments

Comments
 (0)