Add case for document upload where the document exists on disk but there is no database record - refs BT#7218

If upload is in overwrite mode (default), then overwrite the file and create the db record. This goes through the secure files filter first, so no worry there.