From 1366f0b68e3233617ce29bbfedd0159c358b02eb Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 2 Feb 2018 10:15:17 -0800 Subject: [PATCH] moved ownedFile.type assignment --- app/fileManager.js | 1 + app/fileSender.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/fileManager.js b/app/fileManager.js index cd353b62..0845b1f2 100644 --- a/app/fileManager.js +++ b/app/fileManager.js @@ -100,6 +100,7 @@ export default function(state, emitter) { try { metrics.startedUpload({ size, type }); const ownedFile = await sender.upload(); + ownedFile.type = type; state.storage.totalUploads += 1; metrics.completedUpload(ownedFile); diff --git a/app/fileSender.js b/app/fileSender.js index 5b1f356c..e9a86c5a 100644 --- a/app/fileSender.js +++ b/app/fileSender.js @@ -86,7 +86,6 @@ export default class FileSender extends Nanobus { url: `${result.url}#${secretKey}`, name: this.file.name, size: this.file.size, - type: this.file.type, //TODO 'click' ? time: time, speed: this.file.size / (time / 1000), createdAt: Date.now(),