generate code for channel and upload the files to the correct location