Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 15ddf89

Browse files
author
Parth Shah
committed
adding additional mimetypes and reducing error logging
1 parent ecbc9ac commit 15ddf89

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

app/directives/tc-fp-file-input/tc-fp-file-input.directive.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

app/services/api.service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)