|
|
@ -156,8 +156,8 @@ export class AttachmentsUploadComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Files however MAY have no mime type as well
|
|
|
|
// Files however MAY have no mime type as well
|
|
|
|
// so fall back to checking zero or multitudes of 4096:
|
|
|
|
// so fall back to checking zero or 4096 bytes
|
|
|
|
if ((file.size % 4096) === 0) { |
|
|
|
if (file.size === 0 || file.size === 4096) { |
|
|
|
console.warn(`Skipping file because of file size (${file.size}) %O`, file); |
|
|
|
console.warn(`Skipping file because of file size (${file.size}) %O`, file); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|