Where Should I Upload CGI Files

CGI files should be uploaded into the cgi-bin. The cgi-bin lives on the same directory level as httpdocs (not inside httpdocs). CGI files should be uploaded in ASCII format to prevent corruption during upload. After uploading be sure to change permission on the files (chmod) to 755 for the files to execute.
More info on setting permissions can be found here.