added an error message if upload doesn't work