Rewrite file upload actions and reducer

2 jobs for file-upload in 1 minute and 22 seconds (queued for 2 seconds)
latest
Status Name Job ID Coverage
  Test
passed lint #1882

00:00:39

failed test #1881

00:00:42

92.72%
 
Name Stage Failure
failed
test Test There is an unknown failure, please try again
  fileUpload.js  |    66.67 |       60 |      100 |    66.67 |          30,37 |
fragments.js | 95 | 82.35 | 100 | 95 | 81 |
index.js | 100 | 100 | 100 | 100 | |
teams.js | 86.67 | 80 | 100 | 86.67 | 21,43 |
users.js | 93.33 | 90 | 100 | 92.86 | 71 |
-----------------|----------|----------|----------|----------|----------------|
npm info lifecycle pubsweet-client@1.0.0-alpha.3~test: Failed to exec test script
npm ERR! Test failed. See above for more details.
ERROR: Job failed: exit code 1