I want to store a string that stores a file path "C:/myfile.txt".
I've tried initially with Django's FileField but that uploads the file to the server which it is not what I want.
Right now I am circumventing this by having a textfield and people just copy paste the file URL but I was trying to get it by using forms.FileInput() in order to choose the file, but then I only want to retrieve its path which I haven't been able to.
widgets = {'data': forms.DateInput(attrs={'id': 'datepicker'}),'fileloc': forms.FileInput() }
By doing I am able to have a Browse input on my form and allows me to select the file but it fails to validate the form. I need to convert the FileInput to string retrieving its File Path.
Has anyone encountered this before and has any idea how can I solve it?