Pass a path to a Geoprocessing widget through a browse button

I published a Geoprocessing tool that takes a csv file and pass it to XY line tool as shown below.

The tool works fine when I add it to the Web App builder, but for the “Input Table” value there is no button to select and browse for the csv file, so what I do is to copy the csv file path and past it in the Input Table value and then the tool works with me.

Is there any method to add a browse button to select the CSV file form my local machine ?

You'll need to set the input type to a File and allow Uploads for the GP service. Once you do that, any client should be able to pick up on that data type and provide a browse option. You may run into data type compatibility issues as the XY to Line tool expects a Table View, but you're providing a File. You may need to convert your model to a script.

You'll need to set the input type to a File and allow Uploads for the GP service. Once you do that, any client should be able to pick up on that data type and provide a browse option. You may run into data type compatibility issues as the XY to Line tool expects a Table View, but you're providing a File. You may need to convert your model to a script.