This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
directives/tc-fp-file-input Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,17 @@ import _ from 'lodash'
3535 var dragText = ''
3636 // set mimeTypes
3737 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+ ] , ',' )
3949 dragText = 'Drag and drop your .zip file here (500MB max) <br> or'
4050 } else if ( scope . fieldId . indexOf ( 'DESIGN_COVER' ) > - 1 ) {
4151 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'
6060 case 500 : // SERVER ERROR
6161 case 503 : // HTTP_503_SERVICE_UNAVAILABLE
6262 default :
63- logger . error ( 'Restangular Error Interceptor' , response )
63+ logger . debug ( 'Restangular Error Interceptor' , response )
6464 return true // error not handled
6565 }
6666 } )
@@ -146,7 +146,7 @@ import _ from 'lodash'
146146 case 500 : // SERVER ERROR
147147 case 503 : // HTTP_503_SERVICE_UNAVAILABLE
148148 default :
149- logger . error ( 'Restangular Error Interceptor ' , response )
149+ logger . debug ( 'Restangular Error Interceptor ' , response )
150150 return true // error not handled
151151 }
152152 } )
You can’t perform that action at this time.
0 commit comments