{"id":15938963,"url":"https://github.com/inokinoki/django-multiplefilefield","last_synced_at":"2026-01-15T22:11:14.912Z","repository":{"id":57420963,"uuid":"132780253","full_name":"Inokinoki/django-multiplefilefield","owner":"Inokinoki","description":"A multiple file field implementation based on django 1.8.18","archived":false,"fork":false,"pushed_at":"2018-05-10T11:38:59.000Z","size":77,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T08:33:43.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inokinoki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-09T15:53:19.000Z","updated_at":"2019-01-08T16:29:39.000Z","dependencies_parsed_at":"2022-09-04T01:41:51.085Z","dependency_job_id":null,"html_url":"https://github.com/Inokinoki/django-multiplefilefield","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Fdjango-multiplefilefield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Fdjango-multiplefilefield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Fdjango-multiplefilefield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inokinoki%2Fdjango-multiplefilefield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inokinoki","download_url":"https://codeload.github.com/Inokinoki/django-multiplefilefield/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247070921,"owners_count":20878586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T06:00:51.720Z","updated_at":"2026-01-15T22:11:14.873Z","avatar_url":"https://github.com/Inokinoki.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Project Description\n\nA multiple file field implementation in Django.\n\nIt works well with Django-1.8.18 Python 2.7. Welcome to test it in other version and PR.\n\n[![PyPI version](https://badge.fury.io/py/django-multiplefilefield.svg)](https://badge.fury.io/py/django-multiplefilefield)\n\n### Installation\n\n- You can install ``django-multiplefilefield``  with a package manage tool which you prefered the most, for example, to me it's pip:\n\n```bash\npip install django-multiplefilefield\n```\n- Add ``multiplefilefield``  to your ``INSTALLED_APPS``  tuple in your settings file settings*.py:\n\n```python\nINSTALLED_APPS = (\n    # …\n    \"multiplefilefield\",\n)\n```\n\n### Usage\n\n- Fortunately, ``multiplefilefield``  provides the compatibility to the common single file FileField in Django. You can easily change ``models.FileField`` to ``MultipleFileModelField`` , do something to update your old field like:\n\n```bash\n./manage.py makemigrations\n./manage.py migrate\n```\n\n- Or create a new model to have a try with it, just like what I did in the ``multiplefilefield_example``  app:\n\n```python\nfrom django.db import models\nfrom multiplefilefield.fields import MultipleFileModelField\n\nclass SimpleMultipleFileFieldModel(models.Model):\n    hash = models.CharField(name=\"hash\", max_length=128)\n    files = MultipleFileModelField(name=\"files\")\n```\n\n- Once you created a model with ``MultipleFileModelField``, you can use it just like the traditional model with ``FileField``.\n\n### Template\n\nIn the template, please do like this (object can be a SimpleMultileFileFieldModel instance)\n\n```html\n{% if object.files  %}\n    {% for file in object.files %}\n    \u003cli\u003e\u003ca href=\"{{ file.url }}\"\u003e{{file.name}}\u003c/a\u003e\u003c/li\u003e\n    {% endfor %}\n{% endif %}\n```\n\n### Regular Forms / Admin\n\nIn the form, all will be okay. It will be rendered as a ``\u003cinput/\u003e``  with attribute ``multiple`` . \n\nSo just ``Command + Click`` to choose multiple files in Mac, ``Ctrl + Click`` in PC. In the smartphones, surely you can choose many files !\n\n### License\n\n\u003ca href=\"http://philippbosch.mit-license.org/\"\u003eMIT\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finokinoki%2Fdjango-multiplefilefield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finokinoki%2Fdjango-multiplefilefield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finokinoki%2Fdjango-multiplefilefield/lists"}