diff --git a/src/vitis/client/javascript/externs/formReader/component/file_picker/file_picker.js b/src/vitis/client/javascript/externs/formReader/component/file_picker/file_picker.js index ca831964a0b8752260b7ced268c85ef526d52a48..82bf6ee070af83bac88a3f960a37f55e99918a82 100644 --- a/src/vitis/client/javascript/externs/formReader/component/file_picker/file_picker.js +++ b/src/vitis/client/javascript/externs/formReader/component/file_picker/file_picker.js @@ -223,6 +223,16 @@ nsVitisComponent.FilePickerDirective = function ($timeout, $translate, propertie // Trouve le nom du fichier var sFileName = scope['findFileNameInHeaders'](response['headers']); + if (scope['field']['type'] === 'image_wsdata') { + // Vérification du type + if(response['headers']['content-type'] === 'application/x-vm-json; charset=UTF-8'){ + if (bThumbnail === true) { + bThumbnail = false; + sFileName = null; + } + } + } + if (goog.isDefAndNotNull(sFileName)) { oBlob['name'] = sFileName; oBlob._url = sFileUrl;