Argument length checking for the upload script