Re-order some commands to fit execution flow

Add a default response handler to uploading a file.