Catch any upload errors and send them in a flash alert