migration: migrated dropzone to filepond; couple fixes for select2; fixes luxon seconds display;

This commit is contained in:
ievgenii.v 2025-12-02 15:42:34 +01:00
parent 89479931d7
commit cf5ea2eac5
16 changed files with 542 additions and 399 deletions

View file

@ -203,7 +203,6 @@ def includeme(config):
route_name="repo_commit_comment_attachment_upload",
request_method="POST",
renderer="json_ext",
xhr=True,
)
config.add_route(

View file

@ -588,7 +588,7 @@ class RepoCommitsView(RepoAppView):
".xlsx",
".zip",
]
max_file_size = 10 * 1024 * 1024 # 10MB, also validated via dropzone.js
max_file_size = 10 * 1024 * 1024 # 10MB
try:
f_store = store_utils.get_filestore_backend(self.request.registry.settings)

View file

@ -1453,6 +1453,10 @@ class RepoFilesView(RepoAppView):
nodes = {}
for file_obj in r_post.getall("files_upload") or []:
if file_obj == "{}":
# filepond sends the field with the same name as the file field with metadata which in our case is empty
continue
content = file_obj.file
filename = file_obj.filename