Open SandeepK1729 opened 1 year ago
django don't have predefined MultiFileField
Install package
pip install django-multiupload
add to installed apps
INSTALLED_APPS = [
# ...
'multiupload',
]
example:
from django.db import models
from multiupload.fields import MultiFileField
class MultiFile(models.Model):
files = MultiFileField(upload_to='uploads/', min_num=1, max_num=3, max_file_size=1024*1024*5)
_conflict : MultiFileField not gonna store time of upload each file so we're not using this
Supports uploading of multiple files over a limit of max 10MB each file