try and test the new upload file code
fix syntax error detected during testing