This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 2 files changed +13
-3
lines changed
directives/tc-fp-file-input
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,17 @@ import _ from 'lodash'
35
35
var dragText = ''
36
36
// set mimeTypes
37
37
if ( scope . fieldId . indexOf ( 'ZIP' ) > - 1 ) {
38
- scope . mimeTypes = 'application/zip'
38
+ scope . mimeTypes = _ . join ( [
39
+ 'application/x-download' ,
40
+ 'application/download' ,
41
+ 'application/zip' ,
42
+ 'application/x-zip' ,
43
+ 'application/x-zip-compressed' ,
44
+ 'application/octet-stream' ,
45
+ 'application/x-compress' ,
46
+ 'application/x-compressed' ,
47
+ 'multipart/x-zip'
48
+ ] , ',' )
39
49
dragText = 'Drag and drop your .zip file here (500MB max) <br> or'
40
50
} else if ( scope . fieldId . indexOf ( 'DESIGN_COVER' ) > - 1 ) {
41
51
scope . mimeTypes = 'image/png,image/jpeg,image/bmp'
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ import _ from 'lodash'
60
60
case 500 : // SERVER ERROR
61
61
case 503 : // HTTP_503_SERVICE_UNAVAILABLE
62
62
default :
63
- logger . error ( 'Restangular Error Interceptor' , response )
63
+ logger . debug ( 'Restangular Error Interceptor' , response )
64
64
return true // error not handled
65
65
}
66
66
} )
@@ -146,7 +146,7 @@ import _ from 'lodash'
146
146
case 500 : // SERVER ERROR
147
147
case 503 : // HTTP_503_SERVICE_UNAVAILABLE
148
148
default :
149
- logger . error ( 'Restangular Error Interceptor ' , response )
149
+ logger . debug ( 'Restangular Error Interceptor ' , response )
150
150
return true // error not handled
151
151
}
152
152
} )
You can’t perform that action at this time.
0 commit comments