Functional File Upload Code

However, still does not work if no file is given.  Must work on this.