Skip to content

Commit

Permalink
added name to blob
Browse files Browse the repository at this point in the history
  • Loading branch information
temi committed Nov 11, 2024
1 parent bd4ac27 commit b245826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/assets/javascripts/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b245826

Please sign in to comment.