Made the uploadFiles method which clicks the upload button which calls handle upload. This allows the view logic to run as if the button was clicked.