Added more methods to file upload operation to catch errors like HTTP status codes.