handle error cases

file not posted to api

file not uploaded

uploaded file is larger than 50kb