Preliminary code for receiving arbitrary sized files in place