fix issue #13 and bring back the spinner

This pull request makes impossible to upload a same file twice but doesn't notify the user.

It also fix the spinner that seems to have been broken in refactorings.