diff options
Diffstat (limited to 'src/internal-server/public/js/transfer.js')
-rw-r--r-- | src/internal-server/public/js/transfer.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal-server/public/js/transfer.js b/src/internal-server/public/js/transfer.js index c04a6d3b1..8382bba02 100644 --- a/src/internal-server/public/js/transfer.js +++ b/src/internal-server/public/js/transfer.js | |||
@@ -1,11 +1,10 @@ | |||
1 | /* eslint-env browser */ | ||
2 | const submitBtn = document.getElementById('submit'); | 1 | const submitBtn = document.getElementById('submit'); |
3 | const fileInput = document.getElementById('file'); | 2 | const fileInput = document.getElementById('file'); |
4 | const fileOutput = document.getElementById('fileoutput'); | 3 | const fileOutput = document.getElementById('fileoutput'); |
5 | 4 | ||
6 | fileInput.addEventListener('change', () => { | 5 | fileInput.addEventListener('change', () => { |
7 | const reader = new FileReader(); | 6 | const reader = new FileReader(); |
8 | reader.onload = function () { | 7 | reader.onload = () => { |
9 | const text = reader.result; | 8 | const text = reader.result; |
10 | fileOutput.value = text; | 9 | fileOutput.value = text; |
11 | submitBtn.disabled = false; | 10 | submitBtn.disabled = false; |