nearly done with upload functionality

added error check for invalid filetypes. Still need to clear orphaned
files (ie, uploaded but never sent)