I have a Django form class like;
class FileDefinitionForm(ModelForm):
fileContent = forms.FileField(required=False)
def __init__(self, *args, **kwargs):
super(FileDefinitionForm, self).__init__(*args, **kwargs)
????Initialization of file field which is named "fileContentUpl" ???
I have my file as string which is base64 decoded and I need to put the file to my fileField on initialization to show it in html. I tried someting but i couldn't make it works. Is there a way to do this ?
Thank You.