diff --git a/grails-app/assets/javascripts/images.js b/grails-app/assets/javascripts/images.js index b9b265c..830e5e0 100644 --- a/grails-app/assets/javascripts/images.js +++ b/grails-app/assets/javascripts/images.js @@ -189,7 +189,7 @@ function ImageViewModel(prop, skipFindingDocument, context){ ImageViewModel.createObjectURL = function addObjectURL(document){ if (document.blob) { - var blob = document.blobObject = new Blob([document.blob], {type: document.contentType}); + var blob = document.blobObject = new Blob([document.blob], {name: document.filename, type: document.contentType, filename: document.filename}); var url = URL.createObjectURL(blob); return url; }