How to upload multiple files from the Django admin?
问题 I want to upload multiple files in the Django admin, without having to place multiple FileField fields. The user can be able to manage the files in a simple way; delete or change each uploaded file but upload several at once. the solution I see viable is to use several filefield but the problem is, i dont know how many files the user will upload def case_upload_location(instance, filename): case_name = instance.name.lower().replace(" ", "-") file_name = filename.lower().replace(" ", "-")