path trimming
Added FileUploadResponse type to trap and expose errors from lower down in the file upload pipeline
added uploaded file validation