I'm new to Django
and read many posts regarding file handling and uploading in Django
.
I have a scenario in which a model field needs to be a file field. It needs to accept a JSON
file (validate for other file formats) and extract the contents and assign the JSON
string to the field. I don't need to store the file, redirect it to a view. Just extract and assign.
I need to design the field which has a text field and a file picker which picks the file and extracts the contents and assign it to the text field.
Any help with the code is appreciated.
Thanks!