Get skeleton of upload code working