ZammadForm File Attachment Repeat Not Working

Infos:

  • Used Zammad version: 3.4
  • Installation method (source, package, …): Docker

Expected behavior:

Based on example provided below, we expect the file attachment to support multiple files

Actual behavior:

However, looking at the code block, it overwrites the file[] attribute with replace: 1

Is this a bug or intended behavior to force attachment to single file only?

Nevertheless, our customer request to have multiple files to be attached for their convenient.

Thanks!

Did you have a look at the form itself?
When trying to upload a file it only allows you to select one file, not several.

So personally I currently guess that the form is supposed to expect only one file which is why it’s configured to ignore other files if you would somehow provide several ones.

So I guess it’s not a bug that it does that. If there’s a better way to only work on one attachment javascript wise, I think it would be a good idea to enhance it.