Skip to content

Commit b245826

Browse files
committed
added name to blob
1 parent bd4ac27 commit b245826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-app/assets/javascripts/images.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function ImageViewModel(prop, skipFindingDocument, context){
189189

190190
ImageViewModel.createObjectURL = function addObjectURL(document){
191191
if (document.blob) {
192-
var blob = document.blobObject = new Blob([document.blob], {type: document.contentType});
192+
var blob = document.blobObject = new Blob([document.blob], {name: document.filename, type: document.contentType, filename: document.filename});
193193
var url = URL.createObjectURL(blob);
194194
return url;
195195
}

0 commit comments

Comments
 (0)