made upload script working. Needed a keep-alive script to create a connection