Warn user that a failed uploaded file keeps the related document.

Issue #1