how can i in Django access uploaded file list (multi file upload) in forms.py.
In a view i access file list like this :
request.FILES.getlist('files')
but in forms.py i get this error:
Exception Value: 'UploadForm' object has no attribute 'request'
i tried solution in this address but i get error when using this code :
def clean_files(self):
data = self.request.FILES
error:
Exception Value:
'NoneType' object has no attribute 'FILES'