migration: migrated dropzone to filepond; couple fixes for select2; fixes luxon seconds display;
This commit is contained in:
parent
89479931d7
commit
cf5ea2eac5
16 changed files with 542 additions and 399 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue