Improve validation & Prevent double files

Created on 31 March 2025, 2 days ago

Problem/Motivation

We would like to activate the tool for some users and therefore wanted to make it a little more dummy-proof.

1. So far, the zipped files are not validated. If an incorrect file type is included, this file is simply ignored - without notifying the user.

2. In our case, it can often happen that files that have already been imported end up in the ZIP folder again. These should then not be imported again (validation based on the file name).

Proposed resolution

1. Wrong file types: I've used existing code and moved it to the validation function. Now the whole ZIP-file import will stop with an error message, if any has a wrong file type.

2. Double files: In case of double files (same file name AND same media type), the import will NOT stop, but those files will not be generated and the user will be notified about the double ones.

Within the Bulk import form it is possible to (in-)activate the "Double file prevention".

You can also use the settings if you want this functionality to be active by default (per media type).

Remaining tasks

Update Test.
Make MR.

✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany juliaschwarz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024