If you upload the same document twice in the Webapp, only one of them will be added to your inbox. The other one will be deleted. When the document is first uploaded, a hash of the file is saved in the background, which is compared when uploading a new document.
This works however only with the same files. If you upload different scans of the same document, fileee can not recognize this duplicate as such and both documents end up in your inbox.