Added duplicated/empty file checks for FTP/HTTP file uploads