simple upload code for now, no speed limiting yet