From b2458262d91041b5c0f67beaa641da353fae721f Mon Sep 17 00:00:00 2001 From: temi Date: Tue, 12 Nov 2024 06:08:03 +1100 Subject: [PATCH] added name to blob --- grails-app/assets/javascripts/images.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }