SandeepK1729 / data-sync

it's an application that's going the share the data over a same network
https://data-sync.vercel.app
MIT License
0 stars 0 forks source link

Add files upload and download feature over a network #3

Open SandeepK1729 opened 1 year ago

SandeepK1729 commented 1 year ago

Supports uploading of multiple files over a limit of max 10MB each file

SandeepK1729 commented 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)
SandeepK1729 commented 1 year ago

_conflict : MultiFileField not gonna store time of upload each file so we're not using this