Skip to content
Snippets Groups Projects
Commit b4696362 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-1614 fix contentType

parent d97f83fa
Branches
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ export class OzgFileComponent {
}
dragStart(event) {
if (!!this.file.contentType || this.file.contentType === '') this.file.contentType = undefined;
if (!!this.file.contentType || this.file.contentType === '') this.file.contentType = 'application/octet-stream';
const downloadUrl = `${ this.file.contentType }:${ this.file.name }:${ getUrl(this.file, OzgFileLinkRel.DOWNLOAD)}`
console.log(downloadUrl);
event.dataTransfer.setData("DownloadURL", downloadUrl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment