Fix possibility of uploading file that was filtered. As Suggested in #648.