Code

Updated handling of uploaded files, thanks to bcooksley