check file whether file already exists before uploading. also added nicer output