Adjustments in the file upload: fixed a bug when trying to send the file to the controller.