fixed HTTP PUT uploaded file handling and moving of non-POSTed files, closes #318