Remove unused mimetype guessing in BinaryMixin open

issue9356
review309641002
This commit is contained in:
Cédric Krier committed 2020-05-28 18:24:15 +02:00
1 parent 46f911be2a
commit 0398c3d62c
1 file changed
+2 -10
+2 -10
View File
@@ -3856,17 +3856,9 @@ function eval_pyson(value){
}, !field.get_size);
},
open: function() {
var params = {};
var filename_field = this.filename_field;
if (filename_field) {
var filename = filename_field.get_client(this.record);
// Valid mimetype will make the browser directly open the file
params.mimetype = Sao.common.guess_mimetype(filename);
}
this.save_as(params);
this.save_as();
},
save_as: function(params) {
var mimetype = params.mimetype || 'application/octet-binary';
save_as: function() {
var field = this.field;
var record = this.record;
var prm;