We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c62a451 commit 3f92922Copy full SHA for 3f92922
main-support.ts
@@ -17,7 +17,7 @@ import { globals } from './main-globals';
17
*/
18
export function hashFile(fileName: string, fileSize: number): string {
19
// make the magic happen!
20
- let hash = hasher('md5').update(fileName + fileSize).digest('hex');
+ let hash = hasher('md5').update(fileName + fileSize.toString()).digest('hex');
21
return hash;
22
}
23
src/app/components/pipes/file-size.pipe.ts
@@ -7,7 +7,7 @@ export class FileSizePipe implements PipeTransform {
7
8
/**
9
* Return size of file formatted as XXX{mb,gb}
10
- * @param size in bytes
+ * @param sizeInBytes -- file size in bytes
11
12
transform(sizeInBytes: number): string {
13
if (sizeInBytes) {
0 commit comments