Add initial file-upload code, not working yet