Fixed file not being uploaded when choosing to overwrite, issue #144
Fixed last commit