File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ var handleFileImport = function( ev ) {
128
128
var importfile = files [ 0 ] ;
129
129
130
130
//console.log( importfile );
131
- if ( ! importfile . type . match ( 'application/zip' ) ) {
131
+ if ( ! importfile . type . match ( 'application/zip' ) && ! importfile . name . match ( / \. z i p $ / i ) ) {
132
132
alert ( 'This doesn\'t appear to be a Coder project zip file' ) ;
133
133
return false ;
134
134
}
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ var handleFileImport = function( ev ) {
131
131
var importfile = files [ 0 ] ;
132
132
133
133
//console.log( importfile );
134
- if ( ! importfile . type . match ( 'application/zip' ) ) {
134
+ if ( ! importfile . type . match ( 'application/zip' ) && ! importfile . name . match ( / \. z i p $ / i ) ) {
135
135
alert ( 'This doesn\'t appear to be a Coder project zip file' ) ;
136
136
return false ;
137
137
}
You can’t perform that action at this time.
0 commit comments