Let's discuss how to upload files in this chapter. from django import forms class FileFieldForm(forms.Form): file_field = forms.FileField(widget=forms.ClearableFileInput(attrs= {'multiple': True})) Then override the post method of your FormView . There are two ways to keep files in a JSON data: Base64 string - the file will be encoded as Base64 string and all the data will be kept within the JSON object. Django App1 We can also upload any file (.xml, .pdf, .word, .etc) by following the same procedure, but we will need to convert ImageField to FileField in the model's field. print("uploaded file url",uploaded_file_url) But if you click on it, you will get an error message. for field_name, file in request.FILES.iteritems(): filename = file[0].name. Declare the file field in the Forms.py file. libraries like storage and file system storage are very helpful in the file upload process for storage level necessities. Sorted by: 1.