How to make custome field in module

I am trying to make a field which will take the file path from pc and set it in a textfield just like upload button.How can i make this custom field?

e.g
[Text field] [Button]
[C:\Users\Manoj\Desktop\1.jpg] [Upload]

on button click a popup will open to select filed and on selection it will select the file path in text field.

Please guide me.

To do this you would have to make your own field type or customize the code for an existing field from studio.

This is an example of creating a custom field type:
https://suitecrm.com/forum/developer-help/7453-creating-custom-field-types#26989