checking command line before upload.