Also moved the map_err call to the end, which I think makes the function a little easier to read
Attach a file by drag & drop or click to upload